string 2 date conversion

  • Thread starter Thread starter Michael Wu
  • Start date Start date
M

Michael Wu

I have a string looked this
"2003-07-08T13:04:00.0000000"

How do I convert it into a System.DateTime object?



Regards



Michael
 
Hi Michael,

You can use DateTime.Parse or DateTime.ParseExact , the different is that
the latter expect that the string being on a especified format.

Hope this help,
 
Back
Top