Compare Dates
    • 1 Minute to read
    • Dark
      Light

    Compare Dates

    • Dark
      Light

    Article summary

    These functions provide tools for comparing two date values. Many of these functions process and return the information as a Boolean value which can be used to create personalization rules or selection criteria.

    Function

    Description

    ​ecm:equal​

    Determines whether two specified dates are equal.

    ​ecm:greater​

    Determines whether a specified date is greater than a reference date.

    ​ecm:greaterEqual​

    Determines whether a specified date is equal to or greater than a reference date.

    ​ecm:less​

    Determines whether a specified date is less than a reference date.

    ​ecm:lessEqual​

    Determines whether a specified date is equal to or less than a reference date.

    ​ecm:notEqual​

    Determines whether a specified date is not equal to a reference date.

    ​ecm:age​

    Returns the number of years between two dates.

    ​ecm:between​

    Determines whether a specified date is between a start and an end date.

    ​ecx:durationBetween​

    Calculates the difference between two dates in a specified unit.

    ​ecx:isInTimePeriod​

    Verifies whether the current time is within one of the periods given as a parameter.


    Was this article helpful?

    What's Next