Skip to content

getHijriQuarter

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

date-fns-hijri v1.0.1


date-fns-hijri / getHijriQuarter

Function: getHijriQuarter()

getHijriQuarter(date, options?): number | null

Defined in: src/index.ts:376

Get the Hijri quarter (1–4) for a Gregorian date.

Months 1–3 = Q1, 4–6 = Q2, 7–9 = Q3, 10–12 = Q4.

Returns null when the date is outside the supported range.

Parameters

date

Date

options?

ConversionOptions

Returns

number | null

Clone this wiki locally