DateTimeFormatInfo.FirstDayOfWeek Property

Definition

Gets or sets the first day of the week.

public:
 property DayOfWeek FirstDayOfWeek { DayOfWeek get(); void set(DayOfWeek value); };
public DayOfWeek FirstDayOfWeek { get; set; }
member this.FirstDayOfWeek : DayOfWeek with get, set
Public Property FirstDayOfWeek As DayOfWeek

Property Value

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

Exceptions

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

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

Remarks

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

Applies to

See also