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