- / , . ; "text" | Quoted text and punctuation are reproduced in the result |
AD A.D. | Indicates date that is AD. Periods optional |
AM A.M. PM P.M. | Before or after noon. Periods optional |
BC B.C. | Indicates date that is BC. Periods optional |
CC SCC | Century (SCC precedes BC century with -) |
D | The day of week (1 “7) |
DAY | The name of the day of the week (Monday, Tuesday, etc.). Padded to 9 characters . |
DD | Day of month (1 “31) |
DDD | The number of the day of year (1 “366) |
DY | The name of the day of the week, abbreviated |
E | Abbreviated era name (for Japanese Imperial, ROC Official, and Thai Buddha calendars) |
EE | Full era name |
FF [1 “9] | Fractional seconds. 1 “9 specifies the number of digits |
HH | Hour of day(12- hour clock) |
HH12 | Hour of day (12-hour clock) |
HH24 | Hour of day (24-hour clock) |
IW | Number of Week of the year |
IYY IY I | Last 3, 2, or 1 digit(s) of ISO year |
IYYY | 4-digit ISO year |
J | Julian day(number of days since January 1, 4712 BC) |
MI | Minute (0 “59) |
MM | Month (01 “12) |
MON | JAN, FEB, MAR, etc. |
MONTH | Full month name, padded to 9 characters |
Q | Quarter of year where JAN “MAR = 1 |
RM | Month in Roman numerals (I “XII; JAN = I) |
RR | Last two digits of the year, for years in previous or next century (where previous if current year is <=50, next if current year >50) |
RRRR | Round year. Accepts 4 or 2 digit input, 2 digit returns as RR. |
SS | Seconds (0 “59) |
SSSSS | Seconds past midnight (0 “86399) |
TZD | Abbreviated Time Zone String with Daylight Savings |
TZH | Time zone hour |
TZM | Time zone minute |
WW | The week of the year (1 “53) |
W | The week of the month |
X | Local radix character |
Y, YYY | Year, with comma as shown |
YEAR SYEAR | Year, fully spelled out. For SYEAR, BC dates use "-" |
Y YY YYY | Final one, two, or three digits of the year |