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
public DayOfWeek FirstDayOfWeek {get; set;}
public: __property DayOfWeek get_FirstDayOfWeek();
public: __property void set_FirstDayOfWeek(DayOfWeek);
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.


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.


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


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