Friday, August 28, 2009

ASP Net - DateTime conversion

ASP Net - DateTime conversion

Hi,

I am tryoing to convert the following string to a
date. Unfortuanly I get the error: "String was not
recognized as a valid DateTime."

This is my code:

CheckDate("2004-11-01T21:18Z")

private function CheckDate(ByVal strPostDate as string)

Dim dtDate As DateTime = Convert.ToDateTime
(strPostDate)
end function

Can somebody help me?


Vishal


View Full Details...............................

No comments:

Post a Comment