Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

How to convert system date time to Mon, 03 Mar 2014 11:50:38 GMT this format in c#.
Please help me to do this


thanks,
purna
Posted

Simple use "r"

DateTime.Now.ToString("r")
 
Share this answer
 
Comments
Purna.N 18-Mar-14 1:43am    
thanks...
[no name] 18-Mar-14 1:50am    
welcome :)
Praveen_P 18-Mar-14 2:15am    
Hi sankarsan parida , gud solution and its working thank u , +5
[no name] 18-Mar-14 2:22am    
thanks for your appreciation
Hi...
DateTime.Now.ToString("ddd,dd MMM yyyy hh:mm:ss tt");
Its working in our project.
Thank u.
 
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