string to System.DateTime 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,

Ryan's method is the correct answer for your question.

Note that many data types in .NET share the method name "Parse" and its
semantics that it converts a string into the corresponding data types.

Sincerely,
Xiao Xie
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top