Date Format Tester

Try date format patterns such as YYYY-MM-DD HH:mm or %Y-%m-%d and see the result at once, with a list of what each token means.

Processed on your device. Files are not uploaded

How to test a date format

  1. Type a pattern

    Such as YYYY-MM-DD or %Y-%m-%d, one per line.

  2. Set the date and zone

    Leave the date empty for now.

  3. Read the results

    Each pattern is shown formatted.

When to use Date Format Tester

You are unsure whether a pattern such as YYYY-MM-DD HH:mm gives the output you expect.

You are switching between Moment.js or Day.js tokens and strftime codes and want to compare them.

Tips for a better Date Format Tester result

Type one pattern per line, choose the style or let it detect it, and read each result against a date and time zone.

Put text in square brackets to keep it as it is, for example [on].

Date Format Tester: limits and what to check

MM is the month and mm is the minutes, and DD is the day while dd is the short weekday.

Use the tokens for JavaScript libraries and the percent codes for Python, C, PHP and shell date.

About Date Format Tester

Try Moment.js and Day.js style patterns (YYYY-MM-DD HH:mm) and strftime codes (%Y-%m-%d %H:%M) against a date and time zone, and see the result at once. Text in square brackets is kept as it is.

FAQs

What is the difference between MM and mm?

MM is the month and mm is the minutes. The same goes for DD, the day, and dd, the short weekday.

Which style should I use?

Use the tokens for JavaScript libraries such as Day.js, and the percent codes for Python, C, PHP and shell date.

Can I get a Unix timestamp?

Use Unix Timestamp Converter.

Related tools