Adding days to a date field with Velocity script

Highlighted
Level 10 - Community Moderator

Re: Adding days to a date field with Velocity script

Velocity is completely space-preserving -- that is, the line break does exist in the HTML version, but HTML swallows up line breaks and you don't see it in the rendered output (because it's not an HTML break, <br>).

To suppress empty lines, you can wrap what are called void methods in a #set:

#set( $void = $calNow.add($calConst.DATE,6) )
Highlighted

Re: Adding days to a date field with Velocity script

Thank you!!