Skip to main content
Version: 4.1

Calendar Value Option

Defines a date value option.

Value options are used to specify additional date values, which appear as buttons.

They use the same date syntax as the calendar Value attribute.

The special value * can be used as a wildcard option.

Attributes​

Field​

Value​

Specifies the value of the field. The format is specified by the Data Format attribute.

Supported values:

  • A date formatted as specified by Data Format
  • now
  • Date math expressions in the form <anchor>((+|-)<integer><unit>)*( /<unit> )?

<anchor> can be now or an absolute date. To apply math to an absolute date, use value||math. Supported units are y=year, M=month, w=week, d=day. /unit rounds down to the start of that unit.

Examples: now/d, now/w, now/M, now/y, now+1M/M-1d, 2026-03-26||/M.

Attribute Values​
ValueDescriptionExample
<string>Date value formatted as specified in Data Format.2020-12-31
nowDefault value. Current date of the browser.
[+|-][y|M|w|d]Relative date, where y=year, M=month, w=week, d=day.+1d
<string>Date math anchored to an absolute date.`2026-03-26

The default value is: now.

Common​

Label​

Specifies the label of the option.

Attribute Values​
ValueDescription
<string>Label of the option.

Icon​

Specifies the icon of the option.

Attribute Values​
ValueDescription
<icon>Icon of the option.