Date Format Converter

Paste a date in almost any form and this date format converter rewrites it in every common format: ISO 8601, RFC 2822, SQL, Unix timestamps, and more. You can also build your own format with PHP date(), strftime, or Day.js tokens.

Updated
Runs in your browser. Nothing is sent to a server.

Custom format

Result
–
Token reference
TokenExample

How to use the Date Format Converter

  1. Type or paste a date, such as 2025-03-04 14:30 or 1741098600.
  2. Pick the Time zone the date is in (for dates without an offset) and in which to show the results.
  3. Copy any format, or write a Custom format pattern. The token reference lists every token.

How it works

The input is read into one exact instant. Dates with an offset or "Z" are fixed in time; dates without one are read in the chosen time zone. Unix timestamps with up to 10 digits are seconds, and longer ones are milliseconds.

A date like 03/04/2025 means March 4 in the US and 3 April almost everywhere else. When both readings are possible, the converter shows a choice.

Examples

  • 2025-03-04T14:30:05Z → RFC 2822: Tue, 04 Mar 2025 14:30:05 +0000.
  • Same date → Unix: 1741098605.
  • PHP pattern l, jS F Y → Tuesday, 4th March 2025.
  • strftime %Y-%m-%d %H:%M → 2025-03-04 14:30.

Common date formats

FormatExampleUsed in
ISO 86012025-03-04T14:30:05+03:30APIs, JSON, logs
RFC 33392025-03-04 14:30:05+03:30Internet protocols, Go, YAML
RFC 2822Tue, 04 Mar 2025 14:30:05 +0330Email headers, RSS
HTTP dateTue, 04 Mar 2025 11:00:05 GMTHTTP headers, cookies
SQL DATETIME2025-03-04 14:30:05MySQL, SQL Server
Unix time1741086005Databases, programming

Store ISO 8601 in UTC

For data you keep or send between systems, ISO 8601 in UTC (2025-03-04T11:00:05Z) is the safest choice. It sorts correctly as text, every language can parse it, and it carries no ambiguity about the day or month. Convert to local time and friendlier formats only when you show the date to a person.

Limitations

  • Years from 1000 to 9999 only.
  • Two-digit years and dates without a year are not accepted.
  • Written dates must be in English.

Frequently asked questions

What is the ISO 8601 format?

Year, month, day, then the time: 2025-03-04T14:30:05, followed by Z for UTC or an offset such as +03:30.

Is 03/04/2025 March or April?

March 4 in the US, 3 April in most other countries. The converter asks you when a date could be read both ways.

How do I format a date in PHP?

Use date() with tokens: date("Y-m-d H:i:s") gives 2025-03-04 14:30:05. Try your pattern in the Custom format box.

Often used together with the Date Format Converter.