Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft