HOW TO FORMAT DATE IN C# LIKE (MON, 03/30/2013) ?

C G E Mannerheim

Total Post:29

Points:203
Posted by  C G E Mannerheim
C# 
C#
 1264  View(s)
Ratings:
Rate this:
Hi Developers,

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

Thank in Advance.
  1. Dev Patel

    Post:26

    Points:182
    Re: How to format date in c# like (Mon, 03/30/2013) ?

    Hi C G E Mannerheim,

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!