DateTimeFormatInfo::GetShortestDayName Method (DayOfWeek)
.NET Framework (current version)
Obtains the shortest abbreviated day name for a specified day of the week associated with the current DateTimeFormatInfo object.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- dayOfWeek
-
Type:
System::DayOfWeek
One of the DayOfWeek values.
Return Value
Type: System::String^The abbreviated name of the week that corresponds to the dayOfWeek parameter.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | dayOfWeek is not a value in the DayOfWeek enumeration. |
Change History
Date | History | Reason |
|---|---|---|
June 2010 | Added exception information. | Content bug fix. |
.NET Framework
Available since 2.0
Available since 2.0
Show: