Edgardo,
Try:
${created_at:toDate("yyyy-MM-DD'T'HH:mm:ss.SSS'Z'"):toNumber():lt(now():minus(3600000))}
That toNumber() call will convert the date into milliseconds since epoch. That
should allow you to easily compare against the other number.
Thanks
-Mark
From: Edgardo Vega
Sent: Wednesday, May 6, 2015 10:39 AM
To: [email protected]
I am trying to route on attribute and have created a complex expression but
I get a validation error.
${created_at:toDate("yyyy-MM-DD'T'HH:mm:ss.SSS'Z'"):lt(now():minus(3600000))}
It seems like less than function only supports a number not an expression
or an attribute name.
How can I accomplish what I am trying to do? I am just trying to route
based if created_at is older than an hour?
Thanks in advance