FirstDayOfWeek Property

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)

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.

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

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft