Date Formatter
Format a date any way you need it
One date, every common output at once — ISO, RFC, SQL, filename-safe, spoken English — plus a pattern field for anything the list does not cover.
Questions people ask
The things that come up about date formatters, answered plainly.
Which date format should I use?
ISO 8601 — 2024-07-16 — for anything stored, sorted or transmitted. It sorts correctly as text, has no regional ambiguity, and is the only format where 03/04 cannot mean two different days.
What is a filename-safe date?
One with no colons or slashes, since both are illegal or awkward in filenames: 20240716T160000Z. It also sorts chronologically in a directory listing, which is the main reason to use it.
Related tools
Render an instant in any pattern or locale, and read one back out of text.
Custom Date FormatterWrite a pattern in strftime or moment tokens and watch it render live, with a clickable reference and a set of presets to start from.
Time Formatter24-hour, 12-hour, with and without seconds, with an offset, as a duration — every reasonable rendering of a time of day, side by side.
ISO Date ConverterThe extended form, the basic form, the week date and the ordinal date — all four ISO 8601 shapes for one instant, plus a parser for reading them back.
Locale Date ConverterThe same date in dozens of locales — short, medium, long and full — so you can see what your users will actually read, and where the ambiguity lies.