Tarikh

Bangla Calendar

Convert Gregorian dates to the Bengali calendar and render spoken Bangla output.

Bangla Calendar

This is the core feature that makes @coreify/tarikh different.

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

toBanglaCalendar("2026-03-31");
// -> { day: 17, month: "Chaitra", monthIndex: 12, year: 1432 }

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

The default output uses English digits with Latin month names. With locale: "bn-BD", the day and year are localized and month names switch to Bangla.

Spoken Output

format("2026-04-14", {
  mode: "bangla",
  locale: "bn-BD",
  format: "spoken"
});
// -> "পহেলা বৈশাখ ১৪৩৩"

formatBanglaCalendarDay(1, { format: "spoken" });
// -> "পহেলা"

formatBanglaCalendarDay(1, { format: "spoken", variant: "poyla" });
// -> "পয়লা"

Notes

  • monthIndex stays numeric in both outputs
  • The parser accepts legacy spellings such as Boishakh, Joishtho, Choitro, and Poyla
  • variant: "pohela" keeps the standard পহেলা spelling explicitly

On this page