-
Notifications
You must be signed in to change notification settings - Fork 0
toHijri
github-actions[bot] edited this page May 30, 2026
·
1 revision
hijri-core / toHijri
toHijri(
date,options?):HijriDate|null
Defined in: index.ts:42
Convert a Gregorian date to a Hijri date.
Uses the UAQ (Umm al-Qura) calendar by default. Pass { calendar: 'fcna' }
or any registered calendar name via options to use a different engine.
Date
a valid JavaScript Date object
conversion options (calendar engine selection)
HijriDate | null
the corresponding Hijri date, or null if the date is out of range
if date is not a valid Date instance
Reference
API
- toHijri
- toGregorian
- isValidHijriDate
- daysInHijriMonth
- registerCalendar
- getCalendar
- listCalendars
- hDatesTable
- hmLong / hmMedium / hmShort
- hwLong / hwShort / hwNumeric
Guides
Examples
Contributing
Links