Tarikh
Getting Started

Introduction

Learn what Tarikh does and where to begin.

What Tarikh Covers

If you want the shortest path, start at Getting Started.

@coreify/tarikh helps you show dates in a way that feels natural for Bangla-speaking users.

At a Glance

What you needWhere to go
Start with the section hubGetting Started
Add the packageInstallation
Render your first dateQuick Start
Pick a date styleFormatting
Convert digits or parse datesUtilities
Use React components, types, and examplesReference

Main Exports

ExportWhat it does
format()Format a date as standard, Bangla, Hijri, or hybrid output
toBanglaCalendar()Return structured Bangla calendar parts
toHijriCalendar()Return structured Hijri calendar parts
fromNow()Show labels like yesterday, tomorrow, and in 3 days
HIJRI_TIME_ZONESList the supported Hijri timezone values

Why Tarikh Exists

Tarikh is a good fit when your app needs:

  • Bangla calendar dates
  • Hijri calendar output
  • Bangla digits in user-facing strings
  • relative dates like today, yesterday, and tomorrow
  • semantic React <time> output
  • parsing that understands Bangla calendar text
  • SSR-safe formatting that works on the server and client

Design Goals

GoalWhy it matters
Small surface areaYou can reach for one formatter instead of many separate utilities
SSR-friendlyDates can be rendered on the server without extra client work
Bangla-first outputThe default experience matches the language and calendar your users expect
Practical formattingYou can handle standard, Bangla, Hijri, and hybrid output in one package

Tarikh is designed to stay small, SSR-friendly, and easy to use in real applications.

On this page