My tickets
 
Submit ticket
 
Login
 
Email templates
Home
>
Customizations
>
Email templates
Working with time and date in email templates
Sometimes you might want to send to customer in an email also current time and date. The time and date is the server time and date which is set to Mountain Standard Time, specifically America/Phoenix timezone. This article shows you how you can display the time/date in a different timezone than the server timezone or how you can display it in a different format than the default. This applies to email templates which you can customize under Configuration > Email > Customer Templates or Age...
Date format in email templates
There are 2 options how to include the date in e-mail templates: 1. Use $date variable - this variable will be replaced by date in the application default format based on application default language. For example: Chat transcript from: {$date} 2. Use $timestamp variable and format it using Smarty date formatting. For example: Chat transcript from: {$timestamp|date_format:"%Y/%m/%d"} More info about Smarty date formatting here: https://www.smarty.net/docsv2/en/language.modifier.date.format.t...