Format Specifiers
This table lists the format specifiers:
- Format Specifier
- Description
- %8
- ISO-8601 date format. Valid format is YYYYMMDD’T’HHMMSS’.’sssZ
Note
This date format cannot be combined with any other format specifier.
- %a
- Abbreviated weekday name.
- %A
- Full weekday name.
- %b
- Abbreviated month name.
- %B
- Full month name.
- %d
- Day of the month as a decimal number (01 - 31).
- %H
- Hour in 24-hour format (00 - 23).
- %I
- Hour in 12-hour format (01 - 12).
- %j
- Day of the year as a decimal number (001 - 365).
- %j%y
- Day of the leap year as a decimal number (001-366).
- %m
- Month as a decimal number (01 - 12).
- %M
- Minute as a decimal number (00 - 59).
- %S
- Second as a decimal number (00 - 59)
- %U
- Week of the year as a decimal number, with Sunday as the first day of the week (00 - 51).
- %w
- Weekday as a decimal number (0 - 6, with Sunday as “0”).
- %W
- Week of the year as a decimal number, with Monday as the first day of the week (00 - 51).
- %y
- Year without the century as a decimal number (00 - 99).
- %Y
- Year with the century as a decimal number.
- %%
- Percent sign.