Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTimeFormatInfo::GetShortestDayName Method (DayOfWeek)

 

Obtains the shortest abbreviated day name for a specified day of the week associated with the current DateTimeFormatInfo object.

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

public:
[ComVisibleAttribute(false)]
String^ GetShortestDayName(
	DayOfWeek dayOfWeek
)

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.

The following example demonstrates several methods and properties that specify date and time format patterns, native calendar name, and full and abbreviated month and day names.

No code example is currently available or this language may not be supported.

Change History

Date

History

Reason

June 2010

Added exception information.

Content bug fix.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft