Velocity display a value based on a date | Community
Skip to main content
Travis_Schwartz
New Participant
February 6, 2020
Solved

Velocity display a value based on a date

  • February 6, 2020
  • 1 reply
  • 2088 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 6, 2020

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