Skip to main content

Date Formatter

Format any date the way you need it, including Thai Buddhist-era years.

Paste ISO, a timestamp, or leave blank to use the current time

Presets:

Result

Available tokens

YYYYFour-digit year
BBBBBuddhist-era year (CE + 543)
MMMMFull month name
MMMShort month name
MMTwo-digit month
DDTwo-digit day
ddddWeekday name
HHHour, 24-hour clock
mmMinutes
ssSeconds
AAM / PM
ZZUTC offset

Wrap literal text in square brackets, e.g. [Date] DD/MM/YYYY

About this tool

The date formatter renders a date exactly the way you need it — a standard form like ISO 8601, or a full Thai date like "วันอาทิตย์ 2 สิงหาคม 2569".

For a Thai audience the main reason to reach for this is the Buddhist era. Official documents, receipts and formal letters all use BE, while essentially every computer system stores CE, and converting by hand every time invites mistakes. The BBBB token does it directly.

The other thing that separates it from a typical formatter is that the timezone is a separate choice. The same instant reads as a different wall-clock time in every country, and sometimes as a different day — which matters the moment you are reading a timestamp off a server running in UTC.

The token table under the result shows what each token produces for the date you currently have loaded, so you can assemble a pattern without memorising anything. To include literal text, wrap it in square brackets.

How to use

  1. 1Paste a source date, or leave it blank to use the current time
  2. 2Choose the timezone the result should be shown in
  3. 3Type the pattern you want, or click one of the presets
  4. 4Copy the result

Frequently asked questions

Can it output Thai Buddhist-era years?
Yes. Use BBBB for the Buddhist-era year (CE + 543). On the Thai version of the site the month and weekday names come out in Thai too, e.g. 2 สิงหาคม 2569.
Can I include literal text in the pattern?
Yes — wrap it in square brackets, like [Date] DD/MM/YYYY. Anything inside the brackets is printed as typed instead of being read as tokens.
How does the timezone change the result?
The same instant reads as a different wall-clock time in every zone, and sometimes as a different calendar day. That is why the timezone is a separate control from the source date.
What timestamp formats are accepted?
Both seconds (10 digits) and milliseconds (13 digits), told apart automatically by length, plus ISO 8601 strings.
Why does MMMM not turn into MM twice?
Substitution happens in a single pass that always matches the longest token first, so MMMM, MMM, MM and M all behave correctly and never consume each other.

Related tools

Timestamp Converter

Unix timestamp ↔ date & time (seconds & milliseconds).

Timezone Converter

Compare a time across cities anywhere in the world.

Buddhist ↔ Gregorian Year

Convert between Thai Buddhist-era (พ.ศ.) and Gregorian (ค.ศ.) years, both ways.

Age Calculator

Work out age from a birth date in years, months and days, plus a birthday countdown.