Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to convert date time 01/01/2013 10:00:00 can you please provide me formate
Posted
Comments
Afzaal Ahmad Zeeshan 20-Jan-16 4:05am    
Convert DateTime to what?

Do you have the string that you want to convert to DateTime, then use Parse or ParseExact for that.

If you want to convert string to date time then go through How to Convert String to DateTime in C# and VB.Net[^]

If you want to convert date time to string then go through String Format for DateTime [C#][^]

Hope this will help you.
 
Share this answer
 
If you mean you want to specify an absolute format for your DateTime values for presentation, then look here: Formatting a DateTime for display - format string description[^]
 
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