Click here to Skip to main content
15,847,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to change a date 10/15/2013(MM/DD/YYYY) into 15 october,2013..
actually i have a string in which i have date in string format like mm/dd/yyyy and i want to show this string in dd month,yyyy format as i show in above example..
anyone know how to do this ??
thank you in advance
Updated 1-Oct-13 4:17am
johannesnestler 1-Oct-13 9:38am    
did you solve it from the given answers? Btw. this is not a "good" question because the time you needed writing it (nothing wrong with the question itself) would be better invested in hitting F1 while on any DateTime in VS (or use MSDN if you don't have VS), follow the links about formatting - finished. After years of programming in different environments I'd say the .NET docu is the best I have ever seen...

DateObject.toString("dd MMMM, yyyy");[^]
Share this answer
visit here

string dt2 = DateTime.Today.ToString("dd/MMM/yyyy");
 dt2 =dt2.Replace('/', ',');[^]
Share this answer
Rajivdablu 1-Oct-13 9:29am    
actually i already have date in string and i want to convert that string in DD MMM,YYYY format not today's date...
thank you for reply
[no name] 1-Oct-13 9:35am    
follow this
format date to this way
"dd MMM,yyyy"
Rajivdablu 2-Oct-13 5:17am    
thank you i get what i want..
[no name] 2-Oct-13 5:21am    
k....your welcome....

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