Skip to main content

Date Formatter

Input any date and see it in every common format. Supports ISO 8601, RFC 2822, Unix timestamps, SQL, and more.

2026-09-06T00:51:01.856Z
ISO 8601
2026-09-06T00:51:01.856Z
RFC 2822
Sun, 06 Sep 2026 00:51:01 +0000
Unix Epoch (s)
1788655861
Unix Epoch (ms)
1788655861856
SQL Datetime
2026-09-05 20:51:01
Relative
just now
Local (America/New_York)
Saturday, September 5, 2026 at 08:51:01 PM
UTC String
Sun, 06 Sep 2026 00:51:01 GMT
Date Only
2026-09-06
Time Only
00:51:01.856Z
Day of Week
Saturday
Week Number
W36

How to Format Dates Across ISO, RFC, SQL, and Unix Time

Date strings are a compatibility minefield. This date formatter converts between ISO 8601, RFC 2822, SQL timestamps, Unix seconds/milliseconds, and custom format tokens, with timezone support, all in the browser.

Use the epoch converter when you only have a Unix timestamp, and the duration calculator when you need the elapsed time between two instants.

Tips

  • ISO 8601 with a trailing Z is UTC. Missing offsets are treated as local time in most APIs — be explicit.
  • SQL DATETIME usually has no timezone; store UTC and convert on display.
  • Milliseconds vs seconds is the most common Unix timestamp bug — 13-digit values are ms.

More from Shane Code