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.
| Need | Go to |
|---|---|
| A normal Gregorian date label | Standard Formatting |
| A Bangla calendar date | Bangla Formatting |
| A Hijri date | Hijri Formatting |
| Mixed English and Bangla output | Hybrid Formatting |
| Exact token control | Pattern Formatting |
| Calendar parts as data | Bangla 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
| Task | What to read |
|---|---|
| Format a standard date | Standard Formatting |
| Show a Bengali calendar date | Bangla Formatting |
| Show a Hijri date with timezone control | Hijri Formatting |
| Mix Bangla and English in one string | Hybrid Formatting |
| Control every token explicitly | Pattern Formatting |
| Work with calendar objects directly | Bangla and Hijri Calendar |