Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DateTimeFormatInfo.GetAbbreviatedDayName Method

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)
public string GetAbbreviatedDayName(
	DayOfWeek dayofweek
)

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"

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.