Islamic calendar in JavaScript Calendar control
18 Nov 20181 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. To know more about Islamic calendar, please refer this wikipedia.
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. You can enable the Islamic mode by setting the calendarMode as Islamic. Also, need to import and injecting the Islamic module from ej2-calendars as shown below.
import { Islamic, Calendar } from ‘@syncfusion/ej2-calendars’;\
Calendar.Inject(Islamic);
The following example demonstrates how to display the Islamic Calendar (Hijri Calendar).