Modifying a Variable Display Date

Although variables, such as $ticketDue and $exceptionEndDate will display the date in the 'MM/dd/yyyy hh:mm:ss' format in email notifications, you can also use the $dateTool velocity template variable to display an alternative date format. To change the date format in an email template, use the following code corresponding to the format and replace the code with the email template variable:

$ticketDue variable: 

  • Date and time: $dateTool.format('MM/dd/yyyy hh:mm:ss',$ticketDue) 
  • Date: $dateTool.format('MM/dd/yyyy',$ticketDue) 

$exceptionEndDate variable: 

  • Date and time: $dateTool.format('MM/dd/yyyy hh:mm:ss',$exceptionEndDate) 
  • Date: $dateTool.format('MM/dd/yyyy',$exceptionEndDate)