Date Formatter
About this tool
About Date Formatter
Turn any date into the exact string you need and test format patterns before you put them in code. Type “now” for a live clock, paste a Unix timestamp in seconds or milliseconds, an ISO 8601 string, an RFC 2822 email date or a plain local date-time, or pick one from the calendar. The tool lists the same moment as ISO 8601 with offset, UTC ISO, RFC 3339, RFC 2822, the HTTP date header, Unix seconds and milliseconds, SQL datetime, an Excel serial number, and full, long, medium and short locale styles in the language you choose. Below that, write a custom pattern in either strftime syntax (%Y-%m-%d, as in C, Python, PHP and Ruby) or Moment/Day.js tokens (YYYY-MM-DD), with presets to start from; text in [brackets] is kept literally. Choose any IANA time zone and both the input and output follow it, daylight saving included. Every value has a copy button, and nothing leaves your browser.
Built and maintained by Abhi JainUpdated
How to Format a Date
- 1
Enter the date
Type now, a Unix timestamp, an ISO or RFC date, or pick a date and time.
- 2
Choose zone and language
Search for a time zone and pick the language for month and day names.
- 3
Copy a format
Copy a standard format, or type a strftime or token pattern in Custom pattern and copy the result.
Date Formatter: questions and answers
What is the ISO 8601 date format?
YYYY-MM-DDTHH:mm:ss followed by Z for UTC or an offset such as +05:30, for example 2026-12-02T14:30:00+05:30. It sorts correctly as text and is unambiguous worldwide.
What is the difference between strftime and Moment tokens?
strftime uses % codes (%Y year, %m month, %d day, %H hour, %M minute). Moment, Day.js and Luxon-style tokens use letters (YYYY, MM, DD, HH, mm). Both are supported here.
How do I convert a Unix timestamp to a date?
Paste it into the date box. 10-digit numbers are read as seconds and 13-digit numbers as milliseconds, and every format updates instantly.
What does RFC 2822 look like?
Wed, 02 Dec 2026 14:30:00 +0530: the format used in email Date headers. HTTP headers use a similar format, always in GMT.
Which time zone is used?
Your device's zone by default. Inputs without an offset are read in the selected zone, and all outputs are shown in it.
Related Tools
- Relative Time Calculator“3 days ago” or “in 2 weeks” for any date, in 20+ languages, and the reverse.
- Time Zone ConverterConvert a time between any cities or IANA time zones, DST-correct, with a meeting planner.
- Timestamp ConverterConvert Unix timestamps to dates and back in any time zone, with a live epoch clock.
- Week Number CalculatorISO 8601 and US week numbers for any date, with the week's start and end.