Skip to main content
June 17, 2014
Question

add to date value in velocity

  • June 17, 2014
  • 3 replies
  • 1219 views
Hello,

Can someone provide me an example on how to add day values to a date field in Velocity.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

June 17, 2014
It is necessary to retrieve the date and then, resourcing to JavaScript, add/remove days to a date.

The official Velocity's documentation highlights all methods available for date manipulation
velocity.apache.org/tools/releases/1.3/javadoc/org/apache/velocity/tools/generic/DateTool.html

June 18, 2014
Thanks Breno

do you have an example of "resourcing to JavaScript"

The date tool has no methods on doing math on dates
Level 2
September 7, 2014
Keen to see an example too