string 2 date 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
 
I

Ignacio Machin

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,
 

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