GetAbbreviatedDayName Method

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.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Function GetAbbreviatedDayName ( _
	dayofweek As DayOfWeek _
) As String

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.

ExceptionCondition
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"

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft