SimpleDateFormat Flashcards
Creates an instance of SimpleDateFormat to use the given pattern.
SimpleDateFormat(String pattern)
SimpleDateFormat pattern for Era (BC/AD)
G
SimpleDateFormat pattern for year.
y
SimpleDateFormat pattern for week year.
Y
SimpleDateFormat pattern for Month (in year)
M
SimpleDateFormat pattern for Week (in year)
w
SimpleDateFormat pattern for Week (in month)
W
SimpleDateFormat pattern for Day (in year)
D
SimpleDateFormat pattern for Day(in month)
d
SimpleDateFormat pattern for Day of week in month.
F
SimpleDateFormat pattern for Day name in week.
E
SimpleDateFormat pattern for Day number of week (value range from 1-7)
u
SimpleDateFormat pattern for am/pm
a
SimpleDateFormat pattern for Hour (0-23)
H
SimpleDateFormat pattern for Hour (1-24)
k
SimpleDateFormat pattern for Hour in am/pm (0-11)
K
SimpleDateFormat pattern for Hour in am/pm(1-12)
h
SimpleDateFormat pattern for Minute
m
SimpleDateFormat pattern for Second
s
SimpleDateFormat pattern for Millisecond
S
SimpleDateFormat pattern for Time Zone
z