DateTimeFormatInfo.GetAbbreviatedDayName Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.StringThe 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, 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" |