Date Format String Builder
Build a date and time format by clicking tokens, see the live result and the same format for strftime, Moment, PHP, Java and .NET, and read a date text back to ISO and Unix time.
- Free
- No sign-up
- Works on any device
About Date Format String Builder
Every language writes dates differently: %Y-%m-%d in strftime, YYYY-MM-DD in Moment and Day.js, Y-m-d in PHP, yyyy-MM-dd in Java and .NET. Click tokens to build a format, see it applied to a fixed sample date so the preview never changes with today's date, and see the same format translated into the other four languages with a Use button for each. Ready formats include ISO 8601, RFC 2822 and US style. A date text can be read back with your format into ISO 8601 UTC, Unix seconds and milliseconds.
How to use Date Format String Builder
- Pick the language, then click tokens or type a format string, or start from a ready-made format.
- Set the sample date and its UTC offset, and read the live preview and the translations.
- Type a date text to read it back with the format and copy the ISO or Unix value.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Why is the sample date fixed instead of using now?
A fixed sample keeps the preview and the translations reproducible, so you can compare languages without the date shifting. Change the sample field to try any date you like.
What if a token has no equivalent in another language?
The translation shows a marked placeholder instead of guessing. For example strftime has no millisecond token and PHP has no day-of-year token that matches the others.
How are two-digit years and missing offsets read back?
Two-digit years 69 to 99 become 1969 to 1999 and 00 to 68 become 2000 to 2068. A text without an offset token uses the UTC offset field, which starts at plus 00:00.
Is Date Format String Builder free?
Yes. Date Format String Builder on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.