SimpleDateFormat Flashcards Preview

OCP > SimpleDateFormat > Flashcards

Flashcards in SimpleDateFormat Deck (21):
1

Creates an instance of SimpleDateFormat to use the given pattern.

SimpleDateFormat(String pattern)

2

SimpleDateFormat pattern for Era (BC/AD)

G

3

SimpleDateFormat pattern for year.

y

4

SimpleDateFormat pattern for week year.

Y

5

SimpleDateFormat pattern for Month (in year)

M

6

SimpleDateFormat pattern for Week (in year)

w

7

SimpleDateFormat pattern for Week (in month)

W

8

SimpleDateFormat pattern for Day (in year)

D

9

SimpleDateFormat pattern for Day(in month)

d

10

SimpleDateFormat pattern for Day of week in month.

F

11

SimpleDateFormat pattern for Day name in week.

E

12

SimpleDateFormat pattern for Day number of week (value range from 1-7)

u

13

SimpleDateFormat pattern for am/pm

a

14

SimpleDateFormat pattern for Hour (0-23)

H

15

SimpleDateFormat pattern for Hour (1-24)

k

16

SimpleDateFormat pattern for Hour in am/pm (0-11)

K

17

SimpleDateFormat pattern for Hour in am/pm(1-12)

h

18

SimpleDateFormat pattern for Minute

m

19

SimpleDateFormat pattern for Second

s

20

SimpleDateFormat pattern for Millisecond

S

21

SimpleDateFormat pattern for Time Zone

z