V
Vishal
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?
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?