-
Notifications
You must be signed in to change notification settings - Fork 0
toGregorian
github-actions[bot] edited this page May 30, 2026
·
1 revision
hijri-core / toGregorian
toGregorian(
hy,hm,hd,options?):Date|null
Defined in: index.ts:60
Convert a Hijri date to a Gregorian date.
Uses the UAQ calendar by default.
number
Hijri year
number
Hijri month (1-12)
number
Hijri day (1-30)
conversion options (calendar engine selection)
Date | null
a Date in UTC, or null if the input is invalid or out of range
Reference
API
- toHijri
- toGregorian
- isValidHijriDate
- daysInHijriMonth
- registerCalendar
- getCalendar
- listCalendars
- hDatesTable
- hmLong / hmMedium / hmShort
- hwLong / hwShort / hwNumeric
Guides
Examples
Contributing
Links