Date Format Tester
Test a date format string against any date and time zone, and see what every token means. Works with strftime, Go layouts, date-fns, Moment, Java, PHP and .NET patterns, and translates a format from one language to another.
Runs entirely in your browser. Nothing you put in here gets uploaded.
Pattern
Conversions start with %. Everything else prints as typed.
Output
…
Token by token
| Token | Meaning | Output |
|---|---|---|
%a | Weekday name, abbreviated | … |
%d | Day of the month, zero padded | … |
%b | Month name, abbreviated | … |
%Y | Yearglibc does not pad years below 1000, Ruby pads to four digits. | … |
%H | Hour, 24 hour clock, zero padded | … |
%M | Minute, zero padded | … |
%S | Second, zero padded | … |
%z | UTC offset as +hhmm | … |
In other languages
%a, %d %b %Y %H:%M:%S %z
Mon, 02 Jan 2006 15:04:05 -0700
EEE, dd MMM yyyy HH:mm:ss xx
ddd, DD MMM YYYY HH:mm:ss ZZ
EEE, dd MMM uuuu HH:mm:ss xx
D, d M Y H:i:s O
ddd, dd MMM yyyy HH:mm:ss zzz
%z: .NET has no token for this exact form. zzz is the nearest: UTC offset as +hh:mm.
Edge dates
The same pattern on dates that catch mistakes. Pick one to use it.
Token reference
Every strftime token. Pick one to insert it at the cursor.
Year and era
Month and quarter
Week
Day
Weekday
Hour
Minute
Second
AM or PM
Time zone
Timestamp
Shortcut
Next steps
Send this tool's output straight into another tool.
Convert text into every case at once: title case in the APA, AP, Chicago, MLA, Bluebook, AMA and NYT styles, sentence case, upper, lower, camelCase, snake_case, kebab-case and more.
Count words, characters, sentences, paragraphs, lines and more as you type, with estimated reading and speaking time.
Remove duplicate lines from a list or text, keeping the first occurrence. Optionally ignore case and whitespace, or drop blank lines too.
Replace text in two modes: plain find and replace all, or regular expressions with flag controls and capture group references like $1.
Paste a UUID to see what it carries: version, variant, and for time-based versions the exact timestamp, clock sequence and node. Also shows the raw bytes, the 128-bit integer and the URN form.
Decode Base64 to text or encode text to Base64. Paste into the top box, read the result below, and flip the direction with one click. Handles Unicode correctly, reads URL-safe Base64, and shows binary payloads as a hex dump you can download.
Convert numbers between binary, octal, decimal, hexadecimal and any base up to 36. Type into any field and the others update as you go. Handles huge integers without losing precision and accepts 0x, 0b and 0o prefixes.
Convert between scientific notation and full numbers as you type. Reads 1.23e5, 1.23 × 10^5 and plain numbers, shows the value written out, in normalized scientific notation and in engineering notation, and can round to any number of significant digits.