Skip to content

toHijriDate

github-actions[bot] edited this page May 30, 2026 · 1 revision

date-fns-hijri v1.0.1


date-fns-hijri / toHijriDate

Function: 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).

Parameters

date

Date

options?

ConversionOptions

Returns

HijriDate | null

Clone this wiki locally