major date function specifiers Flashcards
1
Q
d
A
Day of the month, two digits, with leading zeros. 01 to 31
2
Q
D
A
Day of the week, three letters. Mon to Sun
3
Q
j
A
Day of the month, no leading zeros. 1 to 31
4
Q
l
A
Day of week, full names. Sunday to Saturday
5
Q
N
A
Day of week, numeric, Monday to Sunday. 1 to 7
6
Q
S
A
Suffix for day of month (useful with specifier j) st, nd, rd, or th
7
Q
w
A
Day of week, numeric, Sunday to Saturday. 0 to 6
8
Q
z
A
Day of year. 0 to 365
9
Q
W
A
Week number or year. 01 to 52
10
Q
F
A
Month name. January to December
11
Q
m
A
Month number with leading zeros. 01 to 12
12
Q
M
A
Month name, three letters. Jan to Dec
13
Q
n
A
Month number, no leading zeros 1 to 12
14
Q
t
A
Number of days in given month. 28 to 31
15
Q
L
A
Leap year. 1 = Yes, 0 = No