Click here to Skip to main content
15,563,471 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to get date in 05 may 2014 this format in c#
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jun-14 2:55am    
You will hardly get "may", unless you intentionally parse the result and create a lower-case string; in cultures based on English it will be "May". :-)
—SA

try this.. :)

C#
string OriginateDateStr = Convert.ToDateTime(DateTime.Now).ToString("dd MMM yyyy");


your solution

C#
string OriginateDateStr = Convert.ToDateTime("05/05/2014").ToString("dd MMM yyyy");
 
Share this answer
 
v2
DateTime time = DateTime.Now;              // Use current time
string format = "dd MMM yyyy";    // Use this format
Console.WriteLine(time.ToString(format));
 
Share this answer
 
v2

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