Tarikh for Bangladesh
Bangla, Hijri, parsing, and relative time in one API
Standard presets, locale-aware structured calendar results, strict parsing, global defaults, Hijri backend selection, and SSR-safe React components in one package.
import { format } from '@coreify/tarikh';
format(new Date(), { mode: "standard" });
// -> "14th Apr 2026"
format(new Date(), { mode: "standard", locale: "bn-BD" });
// -> "১৪ই এপ্রিল ২০২৬ খ্রিস্টাব্দ"The Problem
Most date libraries stop at Gregorian formatting. They do not handle Bangla calendar conversion, Hijri timezone-aware output, strict parse validation, or the mix of English and Bangla that production apps in Bangladesh often need.
Tarikh
A focused toolkit for formatting, parsing, localization, and React rendering. Use one API for standard dates, Bangla dates, Hijri dates, hybrid output, detailed parsing, and relative time.
Core API
@coreify/tarikh
vlatestFormat dates in standard, Bangla, Hijri, or hybrid modes. Add global defaults, preset-based formatting, strict parsing, and locale-aware structured calendar conversion without extra setup.
Read docsimport { format } from '@coreify/tarikh';
format(new Date(), { mode: "standard" });
// -> "14th Apr 2026"
format(new Date(), { mode: "standard", locale: "bn-BD" });
// -> "১৪ই এপ্রিল ২০২৬ খ্রিস্টাব্দ"@coreify/tarikh/react
optionalSSR-safe React components for standard, relative, Bangla, and Hijri output. Semantic <time> elements, `relativeStyle` for relative labels, and no runtime dependencies beyond React.
import { format } from '@coreify/tarikh';
format(new Date(), { mode: "standard" });
// -> "14th Apr 2026"
format(new Date(), { mode: "standard", locale: "bn-BD" });
// -> "১৪ই এপ্রিল ২০২৬ খ্রিস্টাব্দ"Why Tarikh
Locale-safe calendar results
Structured Bangla and Hijri conversion helpers now infer localized or numeric result shapes from the locale you pass, which makes the TypeScript surface match runtime behavior.
Single API
Use `format()` for standard, Bangla, Hijri, and hybrid output. Reach for `fromNow()`, `parseDateDetailed()`, and the helper utilities only when you need lower-level control.
Start building
One package, no extra runtime dependencies, and full TypeScript support for Bangladesh-first date handling.