Skip to content

getHijriMonth

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

date-fns-hijri v1.0.1


date-fns-hijri / getHijriMonth

Function: getHijriMonth()

getHijriMonth(date, options?): number | null

Defined in: src/index.ts:89

Get the Hijri month (1–12) for a Gregorian date.

Returns null when the date is outside the supported range.

Parameters

date

Date

options?

ConversionOptions

Returns

number | null

Clone this wiki locally