Page created: 20 Jan 2022
|
Page updated: 10 May 2023
Spring Expression Language
See the SpEL Language Reference.
DateTimeFormatter patterns
The following common pattern symbols are extracted from Java documentation. For a complete list, see Class DateTimeFormatter.
Symbol | Meaning | Examples |
---|---|---|
y |
year-of-era |
|
D |
day-of-year |
|
M |
month-of-year |
|
d |
day-of-month |
|
q |
quarter-of-year |
|
W |
week-of-month |
|
E |
day-of-week |
|
a |
am-pm-of-day |
|
h |
clock-hour-of-am-pm (1-12) |
|
K |
hour-of-am-pm (0-11) |
|
k |
clock-hour-of-am-pm (1-24) |
|
H |
hour-of-day (0-23) |
|
m |
minute-of-hour |
|
s |
second-of-minute |
|