-
Notifications
You must be signed in to change notification settings - Fork 0
toHijriDate
github-actions[bot] edited this page May 30, 2026
·
1 revision
date-fns-hijri / toHijriDate
toHijriDate(
date,options?):HijriDate|null
Defined in: src/index.ts:28
Convert a Gregorian Date to a Hijri date object.
Returns null when the date falls outside the calendar's supported range
(UAQ: 1318–1500 AH / 1900–2076 CE; FCNA extends slightly further).
Date
HijriDate | null
date-fns-hijri · MIT License · npm · Issues
Guides
Examples
Reference
API — Per Function
- toHijriDate
- fromHijriDate
- isValidHijriDate
- getHijriYear
- getHijriMonth
- getHijriDay
- getDaysInHijriMonth
- getHijriQuarter
- getHijriMonthName
- getHijriWeekdayName
- formatHijriDate
- addHijriMonths
- addHijriYears
- startOfHijriMonth
- endOfHijriMonth
- isSameHijriMonth
- isSameHijriYear
Community