Custom date formats
When you choose “Custom Format” in the Date Picker, you can build your own date style using format tokens. Each token represents part of a date (like year, month, or day). Combine tokens with punctuation or text to create the exact format you want.
For example:
- MM/DD/YYYY → 12/02/2025
- MMMM D, YYYY → December 2, 2025
Available custom format tokens
Use the tokens below in any order, along with any separators (such as -, /, spaces, or commas).
| Format | Output | Description |
| YY | 25 | Two-digit year |
| YYYY | 2025 | Four-digit year |
| M | 1–12 | Month number, beginning at 1 |
| MM | 01–12 | Month number, 2 digits |
| MMM | Jan–Dec | Abbreviated month name |
| MMMM | January–December | Full month name |
| D | 1–31 | Day of the month |
| DD | 01–31 | Day of the month, 2 digits |
| d | 0–6 | Day of the week (Sunday = 0) |
| dd | Su–Sa | Min day-of-week name |
| ddd | Sun–Sat | Short day-of-week name |
| dddd | Sunday–Saturday | Full day-of-week name |
Localized formats
Localized formats (L, LL, l, ll) are preset patterns that automatically adapt to your app locale preference or device locale. They’re a quick way to get common date styles for any language/region without manually combining tokens. For example:
| Format | English | German | Japanese |
| L | MM/DD/YYYY 12/16/2025 |
DD.MM.YYYY 16.12.2025 |
YYYY/MM/DD 2025/12/16 |
| LL | MMMM D, YYYY December 16, 2025 |
D. MMMM YYYY 16.Dezember 2025 |
YYYY年M月D日 2025年12月16日 |
| l | M/D/YYYY 12/16/2025 |
D.M.YYYY 16.12.2025 |
YYYY/M/D 2025/12/16 |
| ll | MMM D, YYYY Dec 16, 2025 |
D. MMM YYYY 16.Dez 2025 |
YYYY年M月D日 2025年12月16日 |
Advanced formats
Advanced formations provide additional format options beyond the standard ones, including quarter, ordinal days, and weeks of year. Advanced format tokens include:
| Format | Output | Description |
| Q | 1-4 | Quarter |
| Do | 1st 2nd … 31st | Day of Month with ordinal |
| w | 1 2 … 52 53 | Week of year |
| ww | 01 02 … 52 53 | Week of year, 2-digits |
| wo | 1st 2nd … 52nd 53rd | Week of year with ordinal |