Time Tools
Format dates and timestamps using common presets or custom token patterns. Live preview as you type.
| Token | Output | Example |
|---|---|---|
YYYY | Full year | 2024 |
YY | 2-digit year | 24 |
MMMM | Full month name | January |
MMM | Short month name | Jan |
MM | Month (01-12) | 01 |
M | Month (1-12) | 1 |
DD | Day (01-31) | 01 |
D | Day (1-31) | 1 |
dddd | Full weekday | Monday |
ddd | Short weekday | Mon |
HH | Hours 24h (00-23) | 14 |
hh | Hours 12h (01-12) | 02 |
mm | Minutes (00-59) | 05 |
ss | Seconds (00-59) | 09 |
SSS | Milliseconds | 123 |
A | AM/PM | PM |
Z | UTC marker | Z |
ZZ | UTC offset (±HHMM) | +0000 |
Date / Time Input field, or hit Now to jump to the current moment.Format Pattern using tokens like YYYY-MM-DD HH:mm:ss — the result updates live below.ISO 8601, RFC 3339, RFC 2822, Unix (s), or Unix (ms)) to fill in a standard pattern instantly.Copy to copy the formatted result to your clipboard.Token Reference table to look up any token and see exactly what it outputs.One click fills in ISO 8601, RFC 3339, or RFC 2822 — the exact formats APIs, logs, and email headers expect.
Generate consistent, sortable timestamps for request logs, database records, and JSON payloads without hunting for the right pattern.
The Unix (s) and Unix (ms) presets output seconds or milliseconds since the epoch — ideal for storage and numeric comparisons.
Toggle between DD/MM/YYYY and MM/DD/YYYY to see which is which and avoid the classic day/month mix-up.
The live Token Reference table shows what every token (YYYY, MM, ss, ZZ…) renders, so you can build patterns with confidence.
All formatting runs in your browser. Your dates and patterns are never uploaded, logged, or sent to a server.
It formats a chosen date and time into a string using common presets (ISO 8601, RFC 3339, RFC 2822, Unix) or a custom token pattern you type yourself.
RFC 3339 is a stricter profile of ISO 8601. Here the ISO 8601 preset includes milliseconds (.SSS), while RFC 3339 is seconds-only. Both use a T separator and a trailing Z.
Unix (s) outputs seconds since the Unix epoch (January 1, 1970 UTC), and Unix (ms) outputs milliseconds. Both are plain numbers useful for storage and sorting.
No. The Z token simply appends a literal Z marker — it does not shift the time. Use ZZ to show your local UTC offset (e.g. +0000), or set the input time in UTC yourself.
Yes. Case matters: MM is the month, mm is minutes, HH is 24-hour time, and hh is 12-hour time.
It falls back to the current date and time, so the preview always has a value to format.
Never. Formatting is done entirely in local JavaScript, and nothing is sent to, stored on, or logged by a server.