Skip to content

Function: toHijri()

@taqwim/core


@taqwim/core / toHijri

Converts a Gregorian date to Hijri (Islamic) date.

The Gregorian date or year to convert.

The month of the Gregorian date (optional, required if dateOrYear is a number).

The day of the Gregorian date (optional, required if dateOrYear is a number).

If the input is not a usable Gregorian date.

If the date falls outside the Umm al-Qura table’s coverage.

toHijri(date): HijriDateObject

Defined in: packages/core/src/lib/toHijri.ts:12

Date | DateObject

HijriDateObject

toHijri(year, month, day): HijriDateObject

Defined in: packages/core/src/lib/toHijri.ts:13

number

number

number

HijriDateObject

toHijri(date): HijriDateObject

Defined in: packages/core/src/lib/toHijri.ts:14

string

HijriDateObject