Formatting
Standard Formatting
Show a normal Gregorian date with optional locale, weekday, and time details.
Start Here
Use standard formatting when you want a Gregorian date label with a small surface area.
Quick Rule
If you want a familiar article date, event card date, or dashboard timestamp, start here.
If you need the Bangla calendar itself, go to Bangla Formatting.
Common Choices
| What you want | Use |
|---|---|
| A short English date | mode: "standard" |
| A Bangla-localized date label | mode: "standard", locale: "bn-BD" |
| More date context | Add weekday, hour, minute, or second |
Example
import { format } from "@coreify/tarikh";
format("2026-03-31", { mode: "standard" });
// -> "31st Mar 2026"
format("2026-03-31", { mode: "standard", locale: "bn-BD" });
// -> "৩১শে মার্চ ২০২৬ খ্রিস্টাব্দ"Good Fit
This is the right choice for dashboards, articles, event cards, and anything that should still look like a regular date.