ecm:less
    • 1 Minute to read
    • Dark
      Light

    ecm:less

    • Dark
      Light

    Article summary

    The function ecm:less determines whether a specified date is less than a reference date. The comparison is exact to the millisecond. The value returned is a Boolean data type.

    Example

    Personalization is displayed to recipients who are at least 55 years old when a message is sent. The message is scheduled for sendout on April 5, 2011.

    The content is inserted into the message with an ​InsertIf​ statement, which is constructed as follows:

    <%InsertIf expression="${ecm:less(user['DateOfBirth'], ecm:toDate('1956-05-04', ecm:timeZone('Europe/Berlin')))}"%>Text<%/InsertIf%>

    Structure​

    ecm:less(date, date)

    Parameters​

    Parameter

    Description

    date

    Specifies the target date.

    date

    The date value used for the comparison.


    Was this article helpful?

    What's Next