Enum CalendarType
Specifies the calendar system to be used in calendar components.
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum CalendarType
Remarks
The CalendarType enum allows selecting between different calendar systems such as Gregorian and Islamic (Hijri).
It determines how dates are calculated, displayed, and handled in components such as SfCalendar, SfDatePicker, and SfDateTimePicker.
The calendar type affects date calculations, month names, and cultural formatting.
Examples
Setting the calendar type to Islamic:
<SfCalendar TValue="DateTime" CalendarMode="CalendarType.Islamic"></SfCalendar>
Fields
| Name | Description |
|---|---|
| Gregorian | Represents the Gregorian calendar system, which is the internationally accepted civil calendar. |
| Islamic | Represents the Islamic (Hijri) calendar system used in Islamic cultures. |