Islamic Calendar in Blazor Calendar Component

8 Jan 20251 minute to read

In addition to the Gregorian calendar, the Calendar control supports displaying the Islamic calendar (Hijri calendar). Islamic calendar or Hijri calendar is a lunar calendar consisting of 12 months in a year of 354 or 355 days.Users can select a date from the Islamic calendar.To display the Islamic calendar, set the CalendarMode property to CalendarType.Islamic. Additionally, you can use the ConvertToHijri and ConvertToGregorian methods to parse dates.

Also, it consists of all Gregorian calendar functionalities as like min and max date, week number, start day of the week, multi selection, enable RTL, start and depth view, localization, highlight and customize the specific dates.By default, calendar mode is in Gregorian.

The following example demonstrates how to display the Islamic Calendar (Hijri Calendar).

  • RAZOR
  • @using Syncfusion.Blazor.Calendars
    
    <SfCalendar TValue="DateTime?" CalendarMode="CalendarType.Islamic" ></SfCalendar>