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

Structure​

ecm:equal(date, date)

Parameters​

Parameter

Description

date

Specifies the target date.

date

The date value used for the comparison.