Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
how to covert string to date
eg. 12/05/20102 1:30:45 am
Posted
Updated 25-Mar-12 23:55pm
v2
Comments
Sergey Alexandrovich Kryukov 26-Mar-12 0:13am    
Is your MSDN broken? How about Google, Bing? Did they ban you? :-)
--SA

Not "convert", parse. By using the methods System.DateTime.Parse or System.DateTime.ParseExact, please see:
http://msdn.microsoft.com/en-us/library/system.datetime.aspx[^].

—SA
 
Share this answer
 
CDate(Expression) can be used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900