add to date value in velocity

Anonymous
Not applicable
Hello,

Can someone provide me an example on how to add day values to a date field in Velocity.
Tags (1)
3 REPLIES 3
Tim_Norton1
Level 1
Keen to see an example too
Anonymous
Not applicable
Thanks Breno

do you have an example of "resourcing to JavaScript"

The date tool has no methods on doing math on dates
Anonymous
Not applicable
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
http://velocity.apache.org/tools/releases/1.3/javadoc/org/apache/velocity/tools/generic/DateTool.htm...