DateTimeFormatInfo::GetAbbreviatedDayName Method (DayOfWeek)
.NET Framework (current version)
Returns the culture-specific abbreviated name of the specified day of the week based on the culture associated with the current DateTimeFormatInfo object.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- dayofweek
-
Type:
System::DayOfWeek
A System::DayOfWeek value.
Return Value
Type: System::String^The culture-specific abbreviated name of the day of the week represented by dayofweek.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | dayofweek is not a valid System::DayOfWeek value. |
For the default invariant DateTimeFormatInfo object, 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" |
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: