asp.net.ph

DateTimeFormatInfo.FirstDayOfWeek Property

System.Globalization Namespace   DateTimeFormatInfo Class


Sets or retrieves the first day of the week.

[ VB ]
public Property FirstDayOfWeek As DayOfWeek

[ C# ]
public DayOfWeek FirstDayOfWeek {get; set;}

[ C++ ]
public: __property DayOfWeek get_FirstDayOfWeek ( );
public: __property void set_FirstDayOfWeek ( DayOfWeek );

[ JScript ]
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.

Example

The below shows the FirstDayOfWeek used for each of the available cultures.

 Show me 

See Also

DateTimeFormatInfo Members   System.DayOfWeek Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph