SOLVED

Re: Velocity display a value based on a date

Go to solution
Travis_Schwartz
Level 4

Velocity display a value based on a date

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?"

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity display a value based on a date

You need to read the seminal post on Date math in Velocity: https://blog.teknkl.com/velocity-days-and-weeks/

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity display a value based on a date

You need to read the seminal post on Date math in Velocity: https://blog.teknkl.com/velocity-days-and-weeks/