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)]]