Re: add to date value in velocity

Anonymous
Not applicable

add to date value in velocity

Hello,

Can someone provide me an example on how to add day values to a date field in Velocity.
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: add to date value in velocity

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...

Anonymous
Not applicable

Re: add to date value in velocity

Thanks Breno

do you have an example of "resourcing to JavaScript"

The date tool has no methods on doing math on dates
Tim_Norton1
Level 1

Re: add to date value in velocity

Keen to see an example too