2 Replies Latest reply on May 5, 2015 3:29 PM by 9928d0ba087bb13df62b94ae429cfd659e22fdde

    Velocity Date Manipulation

           I've got a few date tokens that I've reworked using Velocity, but there are a few issues, the most troubling of which is that the script succeeds in the Marketo email previewer but fails when I send a test email containing it. Look:
      1.           Parse date to make it manipulable.           
        1.                     #set ($x = ${convert.parseDate($lead.DATEFIELD,"MMM d',' yyyy")})
      2.           Compare dates.           
        1.                     $date.difference($x,$date)

           This works in the previewer. When I send an email containing anything above, however, I get the script and not its output. I've even tried $convert.toString($x), but that hasn't worked.
           Can anyone shed some light on what's going on? Thanks!