DateTimeFormatInfo::FirstDayOfWeek Property

 

Gets or sets the first day of the week.

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

public:
property DayOfWeek FirstDayOfWeek {
	DayOfWeek get();
	void set(DayOfWeek value);
}

Property Value

Type: System::DayOfWeek

An enumeration value that represents the first day of the week. The default for InvariantInfo is DayOfWeek::Sunday.

Exception Condition
ArgumentOutOfRangeException

The property is being set to a value that is not a valid System::DayOfWeek value.

InvalidOperationException

The property is being set and the DateTimeFormatInfo object is read-only.

This property is affected if the value of the Calendar property changes.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
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: