Every date-format token, in every language.
Type a format string to translate it between languages — both sides render the same instant as proof.
Go time layout
2006-01-02 15:04
Reference · Mon, Jan 2 2006, 3:04:05 PM MST
2006-01-02 15:04
2006-01-02 15:04
Right now, your zone
…
Both sides render the same instant — the translation is faithful.
Every example on this site renders one instant: Mon, Jan 2 2006, 3:04:05 PM MST — Go's reference time, where the fields count 1 2 3 4 5 6 7.
Languages
- C / POSIX strftime%Y %y %m %b18 tokens
- C# custom formatyyyy yy M MM20 tokens
- CLDR / ICU patterny yy M MM26 tokens
- Go time layout2006 06 1 0121 tokens
- Java DateTimeFormatteruuuu uu M MM26 tokens
- JavaScript Intl.DateTimeFormatyear: "numeric" year: "2-digit" month: "numeric" month: "2-digit"20 tokens
- Moment.js formatYYYY YY M MM25 tokens
- PHP date()Y y n m24 tokens
- Python strftime%Y %y %m %b20 tokens
- Ruby strftime%Y %y %-m %m23 tokens
- Rust chrono%Y %y %m %b22 tokens
The vocabulary
Full matrix →- EraAD
- Four-digit year2006
- Two-digit year06
- ISO week-based year2006
- Quarter1
- Month number1
- Month number, padded01
- Month name, abbreviatedJan
- Month name, fullJanuary
- Week of year1
- Day of month2
- Day of month, padded02
- Day of year2
- Weekday, abbreviatedMon
- Weekday, fullMonday
- Hour, 24-hour clock15
- Hour, 24-hour clock, padded15
- Hour, 12-hour clock3
- Hour, 12-hour clock, padded03
- AM/PM markerPM
- Minute, padded04
- Second, padded05
- Fractional seconds000
- UTC offset, basic-0700
- UTC offset, extended-07:00
- Time-zone name, shortMST
- Unix timestamp1136239445