To display a contact's age in an email based on their birthdate, a piece of code called a "scriptlet" is required:
[[ % floor (div (sub (date_to_time now) (date_to_time (cast_date(contact 'BIRTHDAY')))) 31536000000)]]
Modified on: Thu, 1 Dec, 2022 at 10:43 AM
To display a contact's age in an email based on their birthdate, a piece of code called a "scriptlet" is required:
[[ % floor (div (sub (date_to_time now) (date_to_time (cast_date(contact 'BIRTHDAY')))) 31536000000)]]
Did you find it helpful? Yes No
Send feedback