Canonical: https://toolipedia.app/date-format-string-builder

# 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.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Date Format String Builder

## 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
1. Pick the language, then click tokens or type a format string, or start from a ready-made format.
2. Set the sample date and its UTC offset, and read the live preview and the translations.
3. 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
- date format string builder
- strftime format builder
- moment js format string
- php date format builder
- java date pattern tester
- dotnet date format

## 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.

## Related tools

More free tools that go well with Date Format String Builder:
- [PHP Serialized Data Decoder](https://toolipedia.app/php-serialize-decoder)
- [Unix Command Builder](https://toolipedia.app/unix-command-builder)
- [Regex Escape Tool](https://toolipedia.app/regex-escape-tool)
- [Which Image Format Is Smallest?](https://toolipedia.app/which-image-format-smallest)
- [Localization File Converter](https://toolipedia.app/localization-file-converter)
