Skip to content

Date Formatter

Format any date and time into common presets like ISO 8601, US, and EU formats, or build your own custom pattern using simple tokens.

Category: time
Use Case: Formatting Dates for Documents, Matching a Specific System's Date Format, Learning Date Format Tokens
Privacy: 100% browser-based

Tokens: YYYY, YY, MMMM, MMM, MM, DDDD, DDD, DD, HH (24h), hh (12h), mm, ss, A (AM/PM)

Recommended Settings

Pro Tips

  • Common presets like ISO 8601, US, and EU formats are shown automatically - just set the date and time once
  • Build your own format using tokens like YYYY-MM-DD or DDDD, MMMM DD, YYYY for a fully custom layout
  • HH gives 24-hour format while hh gives 12-hour format - pair hh with the A token for AM/PM
  • All formatting uses the date and time exactly as you entered it in your local timezone

Most Popular

Most users check the ISO 8601 format for technical use, or Long Date for a readable, formal display

When to Use This Tool

Formatting Dates for Documents

Get a date formatted correctly for a letter, report, or official document.

Matching a Specific System's Date Format

Format a date to match what a particular software system or API expects.

Learning Date Format Tokens

Experiment with format tokens to learn how date formatting patterns work.

Localizing Dates for Different Regions

Convert between US and EU date formats to avoid ambiguity.

How It Works

1

Take your entered date and time as the source value

2

Substitute each recognized token in the pattern (like YYYY or MMMM) with the corresponding date component

3

Display the resulting formatted string for both common presets and your custom pattern

100% Private

Files never leave your device. All processing happens locally in your browser.

Lightning Fast

Powered by Client-side token-based date formatting for optimal performance on modern browsers.

Open Source

Built with verified, open-source libraries. Fully transparent.

Frequently Asked Questions

What's the difference between MM and MMMM?

MM gives the two-digit month number (like 03), while MMMM gives the full month name (like March). MMM gives the abbreviated name (Mar).

How do I show a 12-hour time with AM/PM?

Use hh for the 12-hour hour and add the A token for AM/PM, like 'hh:mm A' which produces something like '02:30 PM'.

Why does the US format look ambiguous?

MM/DD/YYYY (US) and DD/MM/YYYY (EU) look identical for dates where the day is 12 or less, which is exactly the kind of ambiguity ISO 8601 (YYYY-MM-DD) was designed to avoid.

Is my data sent to a server?

No. All formatting happens entirely in your browser.

Can I include literal text in my custom pattern?

Yes, any characters that aren't recognized tokens are left as-is, so you can add words, punctuation, or symbols freely.