Modify a Variable Displaying Date

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

For the $ticketDue variable: 

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

For the $exceptionEndDate variable: 

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