Date Formatter
Format dates with custom patterns
Share:
Common Formats
Token Reference
YYYY Full year
YY 2-digit year
MMMM Full month
MMM Short month
MM Month (01-12)
DD Day (01-31)
dddd Full weekday
ddd Short weekday
HH Hours (00-23)
hh Hours (01-12)
mm Minutes
ss Seconds
A AM/PM
a am/pm
X Unix timestamp
DDD Day of year
How to Use Date Formatter
- 1Enter or select a date and time.
- 2Choose a preset format or type a custom pattern.
- 3See the formatted date output instantly.
- 4Reference the token guide for available format tokens.
About Date Formatter
Format dates and times using customizable patterns with tokens like YYYY, MM, DD, HH, mm, ss. Choose from common presets (ISO 8601, US, EU, long format) or create your own custom format string.
Frequently Asked Questions
What format tokens are available?
Common tokens include YYYY (4-digit year), MM (2-digit month), DD (2-digit day), HH (24-hour), hh (12-hour), mm (minutes), ss (seconds), A (AM/PM).
What is ISO 8601 format?
ISO 8601 is the international standard date format: YYYY-MM-DDTHH:mm:ss. For example, 2024-01-15T14:30:00. It's commonly used in APIs and data interchange.