Accurate by design
Conversion uses the battle-tested Borkowski/jalaali algorithm, validated by an exhaustive day-by-day round-trip test suite.
A complete, accurate, and developer-friendly toolkit for the Solar Hijri (Jalali) calendar.
pnpm add @doranjs/coreimport { DoranDate } from '@doranjs/core';
const today = DoranDate.now();
today.format('YYYY/MM/DD'); // "۱۴۰۵/۰۳/۱۱"
today.addDays(10).format('dddd D MMMM YYYY');
today.toGregorian(); // native Date
DoranDate.fromGregorian(new Date());