Click here to Skip to main content
15,897,371 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
Posted
Updated 1-Oct-13 3:17am
v2
Comments
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...

C#
DateObject.toString("dd MMMM, yyyy");


http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx[^]
 
Share this answer
 
v2
visit here


C#
string dt2 = DateTime.Today.ToString("dd/MMM/yyyy");
 dt2 =dt2.Replace('/', ',');



http://stackoverflow.com/questions/15546953/convert-date-to-dd-mmm-yyyy-format-c-sharp[^]
 
Share this answer
 
Comments
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