Wednesday, July 15, 2009

HOW TO CONVERT A STRING INTO DATE IN VB.NET OR C#

To Convert a String into Date Format we need date.parseexact() Function.

date.parseExact(date as string, format as string, third attribute)

example

date.parseExact(stDate, "MM-dd-yyyy", nothing)

That's all......... Enjoy.............

No comments: