AnsweredAssumed Answered

Velocity Script Issue

Question asked by Ashley D'Innocenzo on Aug 14, 2018
Latest reply on Aug 14, 2018 by Sanford Whiteman

I am using this script to give an expiration date that is one week after an email is sent. I can't figure out how to add the "th, nd, st etc" to the date. For example, August 20th instead of August 20. I am having a hard time figuring out how to do this, any help would be appreciated.

 

#set($dateInSevenDays = $date.calendar)

 

$dateInSevenDays.add(10,168)

 

$date.format('EEEE, MMMM d',$dateInSevenDays.time)

Outcomes