DateTimeFormatInfo.ShortestDayNames Property

 

Gets or sets a string array of the shortest unique abbreviated day names associated with the current DateTimeFormatInfo object.

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

[<ComVisibleAttribute(false)>]
member ShortestDayNames : string[] with get, set

Property Value

Type: System.String[]

A string array of day names.

Exception Condition
ArgumentException

In a set operation, the array does not have exactly seven elements.

ArgumentNullException

In a set operation, the value array or one of the elements of the value array is null.

InvalidOperationException

In a set operation, the current DateTimeFormatInfo object is read-only.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: