Hijri calendar playground
Runs in your browser: nothing you type is uploaded or stored.
Input
Gregorian date (YYYY-MM-DD).
Moon-sighting offset
Shift the tabular calendar by whole days to match the date announced in Pakistan.
Result
Ramadan
Hijri
1 / 9 / 1445
formatHijri()
1 Ramadan 1445
Month
Ramadan
Usage
import { toHijri, formatHijri, getHijriMonthName, isRamadan } from "pakdatakit";
const date = new Date(2024, 2, 11);
toHijri(date); // → { year: 1445, month: 9, day: 1 }
formatHijri(date); // → "1 Ramadan 1445"
getHijriMonthName(9); // → "Ramadan"
isRamadan(date); // → true