Skip to main content

Components

The following date components are available:

ComponentDescription
{AMPM}1 for AM and 2 for PM. Typically used with format like this:
{AMPM;FORMAT={AM;PM}}
{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 (0-12)
{ISOWEEK}ISO-8601 year number.
{ISOYEAR}ISO-8601 year.
{MINUTE}Minute of hour (0-59)
{MONTH}Month number (1-12)
{SECOND}Second of hour (0-60)
{YEAR}Current year, e.g. “2021”.
{YEAROFMILLENIUM}Year of the current century, 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
{WEEK_US}US week number