Adding days to a date field with Velocity script

SanfordWhiteman
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) )
Jessica_Biblis4
Level 1

Re: Adding days to a date field with Velocity script

Thank you!!