DynamicContextSettings.DefaultCalendar PropertyDynamicContextSettings.DefaultCalendar PropertyDynamicContextSettings::DefaultCalendar Property

Gets or sets the default calendar.

Syntax

Public Property DefaultCalendar As System.Globalization.Calendar
        Get
        Set(ByVal value As System.Globalization.Calendar)
public System.Globalization.Calendar DefaultCalendar { get; set; }
public:
property System.Globalization::Calendar^ DefaultCalendar {
    System.Globalization::Calendar^ get();
    void set(System.Globalization::Calendar^ value);
}
 

Property Value

Type: System.Globalization.CalendarSystem.Globalization.CalendarSystem.Globalization::Calendar^

The default calendar to be used when formatting dates.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionRaised if the property is set to null a null reference (Nothing in Visual Basic) nullptr.

Remarks

This is the calendar used when formatting dates in human-readable output (for example, by the functions fn:format-date and fn:format-dateTime) if no other calendar is requested.

The default value is determined by the value of the CalendarCalendarCalendar property of the CurrentCultureCurrentCultureCurrentCulture.