I have this : Datetime.Now(); or 23/10/2009 I want this : Friday
Datetime.Now();
23/10/2009
Friday
For local date-time (GMT-5) and using Gregorian calendar.
//default locale System.DateTime.Now.DayOfWeek.ToString(); //localized version System.DateTime.Now.ToString("dddd");
To make the answer more complete:
DayOfWeek MSDN article
If localization is important, you should use the "dddd" string format as Fredrik pointed out - MSDN "dddd" format article
1.4m articles
1.4m replys
5 comments
57.0k users