Saturday, 26 October 2013

Format the Date field in visualforce and VF Email Template

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 


No comments:

Post a Comment