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)

[<ComVisibleAttribute(false)>]
member GetShortestDayName : 
        dayOfWeek:DayOfWeek -> string

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: