Skip to main content

Components

The following date components are available:

ComponentDescription
{AMPM}1 for AM and 2 for PM, printed as AM or PM by default. A different format can be used like this:
{AMPM;FORMAT={ a.m.; p.m.}}
{DAYOFMONTH}Day of month (1-31)
{DAYOFWEEK}Day of week beginning with Monday (1-7)
{DAYOFWEEK_US}Day of week beginning with Sunday (1-7)
{DAYOFYEAR}Day of year (1-366)
{HOUR}Hour of the day (0-23)
{HOUR12}Hour of day using 12-hour time (1-12)
{ISOWEEK}ISO-8601 week number (1-53)
{ISOYEAR}ISO-8601 year, i.e. the year that the ISO week belongs to. It differs from {YEAR} around new year.
{MINUTE}Minute of hour (0-59)
{MONTH}Month number (1-12)
{SECOND}Second of minute (0-60)
{YEAR}Current year, e.g. “2021”.
{YEAROFMILLENNIUM}Year of the current millennium, e.g. “023” for 2023.
{YEAROFCENTURY}Year of the current century, e.g. “23” for 2023.
{YEAROFDECADE}Year of the current decade, e.g. “3” for 2023.
{WEEK}Week number. Same as {ISOWEEK}.
{WEEK_US}US week number, where weeks begin on Sunday and the week containing January 1 is week 1 (1-54)