Community
Discussions
Ideas
Community Blogs
Marketo User Groups (MUGs)
Support
Case Management
Knowledgebase
Product Documentation
Developer Portal
Training
Sign In
add to date value in velocity
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Printer Friendly Page
Anonymous
Not applicable
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
06-16-2014
06:01 PM
06-16-2014
06:01 PM
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)
Tags:
advanced techniques
All forum topics
Previous Topic
Next Topic
3 REPLIES
3
Anonymous
Not applicable
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
06-17-2014
03:16 AM
06-17-2014
03:16 AM
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
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
06-17-2014
05:26 PM
06-17-2014
05:26 PM
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
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
09-07-2014
01:01 AM
09-07-2014
01:01 AM
Re: add to date value in velocity
Keen to see an example too