When creating a Visualforce HTML email template and including a Date field (not a DateTime field) using a merge field such as {!relatedTo.Custom_Date__c}, the date renders with full timestamp and timezone information in the following format:Mon Oct 22 00:00:00 GMT 2018
If you need the date to display in a clean format such as DD/MM/YYYY, without time or timezone information, you must use Visualforce formula functions to extract and format the individual date components. Note that this applies specifically to Date fields — DateTime fields have different rendering behavior.
Use the DAY(), MONTH(), YEAR(), and CASE() Visualforce formula functions to extract and format the date components from the Date field. The CASE() function is used to zero-pad single-digit month numbers.
The following formula renders a Date field in DD/MM/YYYY format. Replace VFDateTest__c with your actual Date field API name:
{!DAY(relatedTo.VFDateTest__c)}/{!CASE(MONTH(relatedTo.VFDateTest__c),1,"01/",2,"02/",3,"03/",4,"04/",5,"05/",6,"06/",7,"07/",8,"08/",9,"09/",10,"10/",11,"11/",12,"12/","??/")}{!YEAR(relatedTo.VFDateTest__c)}
How this formula works:
000385770

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.