I was wondering on how to write a method that will return me a string which will contain the short day name, example:
public static string GetShortDayName(Da
try:
CultureInfo english = new CultureInfo("en-US"); string sunday = (english.DateTimeFormat.DayNames[(int)DayOfWeek.Sunday]).Substring(0, 2);
Or:
dateTimeFormats = new CultureInfo("en-US").DateTimeFormat; string sunday = (dateValue.ToString("ffffdd", dateTimeFormats)).Substring(0, 2);