I am setting up a program and need to display a closing date. We have a field in the lead record that indicates when the promotion ends. The problem is this date is padded because we may allow for stragglers to have an extension to take advantage of the offer.
#set( $lead.autoPreApprovalExpirationDate )
I want to tokenize the date but subtract the padded days. So, for example, the lead record would indicate a lead has a date of March 8th to complete the application, but I want to token to display the last day of February. is there a way to say "look at this value, and display 8 days earlier?"
Solved! Go to Solution.
You need to read the seminal post on Date math in Velocity: https://blog.teknkl.com/velocity-days-and-weeks/
You need to read the seminal post on Date math in Velocity: https://blog.teknkl.com/velocity-days-and-weeks/