If you want to format a date in VisualForce? Use the below example code to format date in your VisualForce page.
1 2 3 | <apex:outputText value="{0,date,MM'/'dd'/'yyyy}"> <apex:param value="{!contact.Birthdate}" /> </apex:outputText> |
Here is the link to full documentation:
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_outputText.htm
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.