Skip to main content

Logical: Date Condition

Compare two Date or DateTime values using a chronological operator and emit a boolean.

Example
Operator: Gt (after)
Date: Date(2024-06-15)
Compare to: Date(2024-06-01)
Output: true

Parameters

Operatorrequired

Chronological comparison applied between Date (A, left) and Compare to (B, right):

  • Eq — A is the same instant as B.
  • Gt — A is strictly after B.
  • Ge — A is the same as or after B.
  • Lt — A is strictly before B.
  • Le — A is the same as or before B.

Input

Daterequired
Left-hand Date or DateTime value.
Compare torequired
Right-hand Date or DateTime value.

When one input is a Date and the other a DateTime, the Date is promoted to a DateTime at midnight UTC (00:00:00Z) before the comparison.

Output

OK

true if the comparison holds, false otherwise.