Tarikh
Formatting

Formatting

Pick the exact formatting path you need, from simple dates to Bangla and Hijri calendar output.

Start Here

Use this section when you already know you want a formatted date and need the fastest path to the right output.

NeedGo to
A normal Gregorian date labelStandard Formatting
A Bangla calendar dateBangla Formatting
A Hijri dateHijri Formatting
Mixed English and Bangla outputHybrid Formatting
Exact token controlPattern Formatting
Calendar parts as dataBangla and Hijri Calendar

Quick Rule

If you want a finished string, start with format().

If you want the raw calendar parts, use toBanglaCalendar() or toHijriCalendar().

If you want mixed-language output, use mode: "hybrid".

Common Paths

TaskWhat to read
Format a standard dateStandard Formatting
Show a Bengali calendar dateBangla Formatting
Show a Hijri date with timezone controlHijri Formatting
Mix Bangla and English in one stringHybrid Formatting
Control every token explicitlyPattern Formatting
Work with calendar objects directlyBangla and Hijri Calendar

On this page