Skip to content
ToolsOnDuty - free online tools
Converters

Date Format Converter

Reformat a date into ISO, US, EU, RFC and Unix formats.

Free foreverRuns in your browserNo sign-up

Accepts ISO dates, common locale strings and Unix timestamps. Local formats use your device time zone; ISO 8601 is shown in UTC. Custom patterns use date-fns tokens like yyyy, MM, dd, HH and mm.

ISO 8601 (UTC)2024-01-31T14:30:00.000Z
ISO date2024-01-31
US (MM/DD/YYYY)01/31/2024
EU (DD/MM/YYYY)31/01/2024
LongWednesday, 31 January 2024
RFC 2822Wed, 31 Jan 2024 14:30:00 +0000
Time (24-hour)14:30:00
Time (12-hour)02:30:00 PM
Day of weekWednesday
Unix seconds1706711400
Unix milliseconds1706711400000

About the Date Format Converter

Enter a date, a common date string or a Unix timestamp, and see it in every common format at once.

Get ISO 8601, US and EU dates, a long form, RFC 2822, 12 and 24 hour times, the day of week and Unix seconds and milliseconds.

A custom pattern field lets you build any format using date-fns tokens.

Key features

  • ISO, US, EU, long, RFC 2822 and Unix forms
  • Accepts date strings and Unix timestamps
  • Custom pattern using date-fns tokens
  • Copy any format instantly

How to use

  1. 1Enter a date, date string or Unix timestamp.
  2. 2Optionally add a custom pattern like yyyy/MM/dd.
  3. 3Copy the format you need in one click.

Examples

ISO to US and Unix
Input: 2024-01-31
Output: 01/31/2024, 1706659200

One date is shown in US format and as a Unix timestamp.

Unix timestamp to date
Input: 1706659200
Output: 2024-01-31 (ISO)

A Unix timestamp is read back into a calendar date.

Frequently asked questions

What input does it accept?
ISO dates like 2024-01-31, common strings like 01/31/2024 2:30 PM, and Unix timestamps in seconds or milliseconds.
Which time zone is used?
Local formats use your device time zone, while ISO 8601 is shown in UTC for a clear reference.
What tokens does the custom pattern use?
It uses date-fns tokens, such as yyyy for year, MM for month, dd for day, HH for hours and mm for minutes.