Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ShortestDayNames Property

DateTimeFormatInfo::ShortestDayNames Property

Updated: June 2010

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

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

public:
property array<String^>^ ShortestDayNames {
	array<String^>^ get ();
	void set (array<String^>^ value);
}

Property Value

Type: array<System::String>
A string array of day names.

ExceptionCondition
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 nullptr.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library

Date

History

Reason

June 2010

Added exception information.

Content bug fix.

Show:
© 2015 Microsoft