string to System.DateTime conversion

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
 
X

Xie Xiao

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top