Tarikh
Getting Started

Quick Start

Show your first date with Tarikh.

Try It Once

If you just want to see Tarikh working, start here.

import { format, fromNow, toBanglaCalendar } from "@coreify/tarikh";

format("2026-03-31", { mode: "standard" });
// -> "31st Mar 2026"

format("2026-04-14", { mode: "bangla", locale: "bn-BD" });
// -> "১লা বৈশাখ ১৪৩৩ বঙ্গাব্দ"

fromNow(new Date(Date.now() - 86400000), { numeric: "auto" });
// -> "yesterday"

toBanglaCalendar("2026-03-31", { locale: "bn-BD" });
// -> { day: "১৭", month: "চৈত্র", monthIndex: 12, year: "১৪৩২" }

Pick the Right Result

If you want...Use this
A normal date labelformat(..., { mode: "standard" })
A Bangla calendar dateformat(..., { mode: "bangla" })
A Hijri dateformat(..., { mode: "hijri" })
A mixed English/Bangla dateformat(..., { mode: "hybrid" })
A relative labelfromNow()
The calendar parts themselvestoBanglaCalendar() or toHijriCalendar()

Next Step

If you want to choose a specific style, go to Formatting.

On this page