This documentation is archived and is not being maintained.

DateTimeFormatInfo.FirstDayOfWeek Property

Gets or sets the first day of the week.

[Visual Basic]
Public Property FirstDayOfWeek As DayOfWeek
[C#]
public DayOfWeek FirstDayOfWeek {get; set;}
[C++]
public: __property DayOfWeek get_FirstDayOfWeek();
public: __property void set_FirstDayOfWeek(DayOfWeek);
[JScript]
public function get FirstDayOfWeek() : DayOfWeek;
public function set FirstDayOfWeek(DayOfWeek);

Property Value

A System.DayOfWeek value representing the first day of the week. The default for InvariantInfo is Sunday.

Exceptions

Exception Type 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 is read-only.

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DateTimeFormatInfo Class | DateTimeFormatInfo Members | System.Globalization Namespace | System.DayOfWeek

Show: