Skip to main content

DateValueMatcher

A date value with a comparison operator used as a date range boundary.

Notes

Specifies a date value and a comparison operator (such as before, after, or equals) used as one bound of a date range condition. An optional time zone can be set for accurate date interpretation.

Usage

date: string
operator: gt
zoneId: string

Properties

PropertyTypeRequiredDefault
datestringNo-
operatorenumNo-
zoneIdstringNo-

Property Details

date

The date to compare against, absolute or relative.

Absolute dates are written yyyy-MM-dd or yyyy-MM-ddThh:mm:ss[.SSS]2015-05-31, 2015-05-31T22:44:15.

Relative dates start from TODAY (current day, no time) or NOW (current day with time), optionally offset by a number of units: NOW-7d for a week ago, TODAY+1M for next month. Units are Y, M, D, h, m, s. Append *NOW-7d* — to have the reference moment refresh on each evaluation rather than being fixed the first time it is used.

operator

The logical operator used to combine multiple conditions (AND or OR).

Allowed Values

  • gt
  • ge
  • eq
  • le
  • lt

zoneId

Time zone for this matcher's date when the expression does not carry one. Takes precedence over the condition-level conditionZoneId.