How to get the day name from a selected date?
c#, datetime
Solution
//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
Problem
I have this : `Datetime.Now();` or `23/10/2009` I want this : `Friday` For local date-time (GMT-5) and using Gregorian calendar.