How to show today's date in visualforce email template - Salesforce Globe For You
Solution: Use {!TODAY()} to display today's date in visualforce email template.
Example:
Visualforce Email Template Code
<messaging:emailTemplate subject="Visualforce Email Template Demo" recipientType="User" relatedToType="Account">
<messaging:plainTextEmailBody >
Today Date : {!TODAY()}
Today Date(DD/MM/YYYY) : <apex:outputText value="{0,date, dd/MM/YYYY}">
<apex:param value="{!TODAY()}" />
</apex:outputText>
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Output:
No comments:
Post a Comment