Advanced DateFormatter Cheat Sheet

Select Time Period
Format Examples
Text to Enter
Description
7
14
d
The day of the month, no zero padding.
07
14
dd
A double d will use 01 for January 1st.
3rd Tuesday in December
2nd Wednesday in June
F
The day of week in the month
Tue
Fri
E
The abbreviation for the day of the week
Tuesday
Friday
EEEE
The wide name of the day of the week
T
F
EEEEE
The 1 letter day name abbreviation
Tu
Fr
EEEEEE
The short day of week
Format Examples
Text to Enter
Description
4
12
M
Will show at least 1 digit
04
12
MM
A double M will use '04' for April
Apr
Dec
MMM
The shorthand name of the month
April
December
MMMMM
Full name of the month
A
D
MMMMM
Narrow name of the month
Format Examples
Text to Enter
Description
2020
d
The day of the month, no zero padding.
20
dd
A double d will use 01 for January 1st.
020
F
The day of week in the month
Format Examples
Text to Enter
Description
4
Q
The quarter of the year.
04
QQ
The quarter of the year with zero padding.
Q4
QQQ
Quarter including "Q"
4th quarter
QQQQ
Quarter spelled out