Hi, we send out a sales email with different deadline dates and would like to create a dynamic date token that automatically updates this field. For example, we would like to have one token that uses “today's date” + 5 days and another token that uses “today’s date” + 7 days. Is there a way to easily set this up right from the token field?
Thanks!
Solved! Go to Solution.
your email script tokens would look something like this
for 5 days
#set($dateInFiveDays = $date.calendar)
$dateInFiveDays.add(10,120)
$date.format('full_date',$dateInFiveDays.time)
and like this
for 7days
#set($dateInSevenDays = $date.calendar)
$dateInSevenDays.add(10,168)
$date.format('full_date',$dateInSevenDays.time)
The key value is the 120 and 168 (24hrs x number of days), You would also create two seperate tokens.
Make sense?