Date Formatter | Custom Date & Time Strings
Format dates into custom readable strings. Support for multiple locales and formats like YYYY-MM-DD.
Input Time
Custom Format String
Presets
Formatted Result
Please enter a value
Format Tokens Guide
Year, Month, and Day
YYYY: 4-digit year (e.g., 2024)\nYY: 2-digit year (e.g., 24)\nMM: Month, 2-digit (01-12)\nM: Month (1-12)\nDD: Day of month, 2-digit (01-31)\nD: Day of month (1-31)
Time
HH: Hour, 24-hour, 2-digit (00-23)\nH: Hour, 24-hour (0-23)\nhh: Hour, 12-hour, 2-digit (01-12)\nh: Hour, 12-hour (1-12)\nmm: Minute, 2-digit (00-59)\nss: Second, 2-digit (00-59)\nA: AM/PM
Other
Z: Offset from UTC (e.g., +08:00)\ndddd: Day of week (e.g., Monday)\nMMMM: Full month name (e.g., January)