This documentation is archived and is not being maintained.

DateTimeFormatInfo.GetAbbreviatedDayName Method

Returns the culture-specific abbreviated name of the specified day of the week based on the CultureInfo of the current thread.

[Visual Basic]
Public Function GetAbbreviatedDayName( _
   ByVal dayofweek As DayOfWeek _
) As String
public string GetAbbreviatedDayName(
 DayOfWeek dayofweek
public: String* GetAbbreviatedDayName(
 DayOfWeek dayofweek
public function GetAbbreviatedDayName(
   dayofweek : DayOfWeek
) : String;


A System.DayOfWeek value.

Return Value

The culture-specific abbreviated name of the day of the week represented by dayofweek.


Exception Type Condition
ArgumentOutOfRangeException dayofweek is not a valid System.DayOfWeek value.


For the default invariant DateTimeFormatInfo, this method returns a string from the GregorianCalendar:

dayofweek Return Value
Sunday "Sun"
Monday "Mon"
Tuesday "Tue"
Wednesday "Wed"
Thursday "Thu"
Friday "Fri"
Saturday "Sat"


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DateTimeFormatInfo Class | DateTimeFormatInfo Members | System.Globalization Namespace | CultureInfo | GregorianCalendar | AbbreviatedDayNames | System.DayOfWeek