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, options?): HijriDateObject

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

Date | DateObject

HijriCalendarSystemOptions

HijriDateObject

toHijri(year, month, day, options?): HijriDateObject

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

number

number

number

HijriCalendarSystemOptions

HijriDateObject

toHijri(date, options?): HijriDateObject

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

string

HijriCalendarSystemOptions

HijriDateObject