PingOne

References

Spring Expression Language

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

2004; 04

D

day-of-year

189

M

month-of-year

07; Jul; July; J

d

day-of-month

10

q

quarter-of-year

03; Q3; 3rd quarter

W

week-of-month

4

E

day-of-week

Tue; Tuesday; T

a

am-pm-of-day

PM

h

clock-hour-of-am-pm (1-12)

12

K

hour-of-am-pm (0-11)

0

k

clock-hour-of-am-pm (1-24)

1

H

hour-of-day (0-23)

0

m

minute-of-hour

30

s

second-of-minute

55