Below is the code which is used to format the date in Visualforce page and VF Email Template
<apex:outputText value="{0,date,MM/dd/YYYY}">
<apex:param value="{!relatedTo.closeDate}" />
</apex:outputText> </td>
Output:
08/11/2010
<apex:outputText value="{0,date,MM/dd/YYYY}">
<apex:param value="{!relatedTo.closeDate}" />
</apex:outputText> </td>
Output:
08/11/2010
No comments:
Post a Comment