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

Posted on    July-09-2013 2:04 AM

 C# C# 

 1 Reply(s)
 1213  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

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