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).

FormatOutputDescription
YY25Two-digit year
YYYY2025Four-digit year
M1–12Month number, beginning at 1
MM01–12Month number, 2 digits
MMMJan–DecAbbreviated month name
MMMMJanuary–DecemberFull month name
D1–31Day of the month
DD01–31Day of the month, 2 digits
d0–6Day of the week (Sunday = 0)
ddSu–SaMin day-of-week name
dddSun–SatShort day-of-week name
ddddSunday–SaturdayFull 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:

FormatEnglish GermanJapanese
LMM/DD/YYYY
12/16/2025
DD.MM.YYYY
16.12.2025
YYYY/MM/DD
2025/12/16
LLMMMM D, YYYY
December 16, 2025
D. MMMM YYYY
16.Dezember 2025
YYYY年M月D日
2025年12月16日
lM/D/YYYY
12/16/2025
D.M.YYYY
16.12.2025
YYYY/M/D
2025/12/16
llMMM 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:

FormatOutputDescription
Q1-4Quarter
Do1st 2nd … 31stDay of Month with ordinal
w1 2 … 52 53Week of year 
ww01 02 … 52 53Week of year, 2-digits
wo1st 2nd … 52nd 53rdWeek of year with ordinal