Date & Time Format Reference

Common formats, standards, and format tokens

Open DateTime Tools →

Common Format Examples

FormatExampleDescription
YYYY-MM-DDTHH:mm:ss.sssZ2024-03-31T14:30:00.000ZISO 8601 full (UTC)
YYYY-MM-DDTHH:mm:ssZ2024-03-31T14:30:00+05:30ISO 8601 with offset
YYYY-MM-DDTHH:mm:ss2024-03-31T14:30:00ISO 8601 local (no tz)
YYYY-MM-DD2024-03-31ISO date only
HH:mm:ss14:30:00ISO time only (24h)
Ddd, DD Mon YYYY HH:mm:ss ZSun, 31 Mar 2024 14:30:00 +0000RFC 2822 / email
Ddd Mon DD YYYY HH:mm:ss ZSun Mar 31 2024 14:30:00 GMT+0000JavaScript toString()
MM/DD/YYYY03/31/2024US format
DD/MM/YYYY31/03/2024European format
DD-MM-YYYY31-03-2024Dash-separated EU
YYYY/MM/DD2024/03/31Asian / ISO-like
MMMM D, YYYYMarch 31, 2024Long English
MMM D, YYYYMar 31, 2024Short English
D MMMM YYYY31 March 2024European long
17118432001711843200Unix epoch (seconds)
17118432000001711843200000Unix epoch (milliseconds)

JavaScript / Intl Format Tokens

OptionValuesExample output
year"numeric" | "2-digit"2024 | 24
month"numeric" | "2-digit" | "long" | "short" | "narrow"3 | 03 | March | Mar | M
day"numeric" | "2-digit"31 | 31
weekday"long" | "short" | "narrow"Sunday | Sun | S
hour"numeric" | "2-digit"2 PM | 02 PM
minute"numeric" | "2-digit"5 | 05
second"numeric" | "2-digit"7 | 07
timeZoneName"short" | "long" | "shortOffset"IST | India Standard Time | GMT+5:30
hour12true | false2:30 PM | 14:30

Python strftime / strptime Tokens

TokenMeaningExample
%Y4-digit year2024
%y2-digit year24
%mMonth (01–12)03
%BMonth name (full)March
%bMonth name (abbr)Mar
%dDay (01–31)31
%AWeekday (full)Sunday
%aWeekday (abbr)Sun
%jDay of year (001–366)091
TokenMeaningExample
%HHour 24h (00–23)14
%IHour 12h (01–12)02
%MMinute (00–59)30
%SSecond (00–59)00
%pAM or PMPM
%ZTimezone nameUTC
%zUTC offset+0530
%fMicroseconds000000
%sUnix timestamp1711843200

ISO 8601 Duration Format

DurationExampleMeaning
PnYnMnDTnHnMnSP1Y2M3DT4H5M6S1yr 2mo 3d 4hr 5min 6sec
PTnHPT2H2 hours
PTnMPT30M30 minutes
PnDP7D7 days
PnWP2W2 weeks

Learn more in the ISO 8601 guide or use the DateTime Tools to convert and detect formats.

Online DateTime & Timezone Converter

io9.me DateTime Tools is a suite of date and time utilities for developers. Convert between timezones, decode Unix epoch timestamps, detect and parse date string formats, calculate the difference between two dates, and convert between ISO 8601, RFC 2822, and other formats.

Available tools

  • Timezone Converter — convert a date and time from one timezone to another with a built-in world clock
  • Epoch Converter — convert Unix timestamps (seconds or milliseconds) to human-readable dates and vice versa
  • Format Detector — paste a date string and detect its format (ISO 8601, RFC 2822, etc.)
  • Date Calculator — calculate the number of days, hours, and minutes between two dates, or add/subtract durations
  • Format Converter — convert a date between ISO 8601, RFC 2822, Unix timestamp, and custom patterns

How to use

  1. Select a tool tab: Timezone, Epoch, Format, Calculator, or Converter.
  2. Enter a date, timestamp, or date string.
  3. The result is calculated instantly.

Common use cases

Convert API timestamps to your local timezone, debug epoch values in log files, determine the format of date strings from external systems, calculate SLA durations between events, and convert dates for international users.

Related tools and guides