Home > DeveloperSection > Forums > How to format date in c# like (Mon, 03/30/2013) ?
C G E Mannerheim
C G E Mannerheim

Total Post:29

Points:203
Posted on    July-09-2013 2:04 AM

 C# C# 
Ratings:


 1 Reply(s)
 951  View(s)
Rate this:
Hi Developers,

I wants to format date like Mon, 03/30/2013 in c#

Thank in Advance.


Dev Patel

Total Post:26

Points:182
Posted on    July-09-2013 2:12 AM

Hi C G E Mannerheim,

Use Following line of code :
DateTime dt = new DateTime();
string date = dt.ToString("ddd, MM/dd/yyyy", CultureInfo.InvariantCulture);

Don't want to miss updates? Please click the below button!

Follow MindStick