dayjs-hijri-plus/.wiki/Home.md
Aric Camarata c59197d7e6 chore: CR/QA polish for v1.0.0 release
Fix documentation style (no em dashes). Update hijri-core devDep
from file: path to ^1.0.0. Correct UAQ range to 1318-1500 AH /
1900-2076 CE throughout.
2026-02-25 15:13:11 -05:00

931 B

dayjs-hijri-plus

A Day.js plugin for Hijri calendar conversion and formatting. All calendar logic is delegated to hijri-core, making this package a thin, well-typed adapter with no calendar arithmetic of its own.

Install

pnpm add dayjs dayjs-hijri-plus hijri-core

Quick Usage

import dayjs from 'dayjs';
import hijriPlugin from 'dayjs-hijri-plus';

dayjs.extend(hijriPlugin);

dayjs('2023-03-23').toHijri();
// => { hy: 1444, hm: 9, hd: 1 }

dayjs('2023-03-23').formatHijri('iD iMMMM iYYYY');
// => '1 Ramadan 1444'

dayjs.fromHijri(1444, 10, 1).format('YYYY-MM-DD');
// => '2023-04-21'

Contents

  • API Reference: all methods, parameters, return types
  • Architecture: design decisions, delegation model, format token resolution

Part of the acamarata JavaScript library collection.