Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How i can make date in specific format
Posted
Comments
Rajesh Anuhya 26-Oct-10 1:48am    
Any Effort???

There are thousands of examples in net , a simple google search will give you more information

Go through the below google search link

DateTime Formats in C#[^]
 
Share this answer
 
Try:
C#
DateTime myDate = new DateTime();
myDate.ToString("yyyy/mm/dd");


Details here: DateTime::ToString Method[^]
 
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