DateTimeFormatInfo.FirstDayOfWeek Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the first day of the week.
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Syntax
Public Property FirstDayOfWeek As DayOfWeek
public DayOfWeek FirstDayOfWeek { get; set; }
Property Value
Type: System..::.DayOfWeek
A System..::.DayOfWeek value representing the first day of the week. The default for InvariantInfo is Sunday.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | An attempt was made to set the property to a value that is not a valid System..::.DayOfWeek value. |
InvalidOperationException | The DateTimeFormatInfo object is read-only. |
Remarks
This property is affected if the value of the Calendar property changes.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone