asp.net.ph

DateTimeFormatInfo.CalendarWeekRule Property

System.Globalization Namespace   DateTimeFormatInfo Class


Sets or retrieves a value that specifies which rule is used to determine the first calendar week of the year.

[ VB ]
public Property CalendarWeekRule As CalendarWeekRule

[ C# ]
public CalendarWeekRule CalendarWeekRule {get; set;}

[ C++ ]
public: __property CalendarWeekRule get_CalendarWeekRule ( );
public: __property void set_CalendarWeekRule ( CalendarWeekRule );

[ JScript ]
function get CalendarWeekRule ( ) : CalendarWeekRule;
public function set CalendarWeekRule ( CalendarWeekRule );

Property Value

A CalendarWeekRule value that determines the first calendar week of the year. The default for InvariantInfo is FirstDay.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException The property is being set to a value that is not a valid CalendarWeekRule value.

Remarks

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

Example

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

 Show me 

See Also

DateTimeFormatInfo Members   CalendarWeekRule Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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