The function ecm:lessEqual determines whether a specified date is equal to or 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:lessEqual(user['DateOfBirth'], ecm:toDate('1956-05-04', ecm:timeZone('Europe/Berlin')))}"%>Text<%/InsertIf%>
CODE

Structure​

ecm:lessEqual(date, date)

Parameters​

Parameter

Description

date

Specifies the target date.

date

The date value used for the comparison.