title: How to format a date in VisualForce?
body: <p>In Salesforce, if I'm binding a date into a VisualForce page, how do I apply custom formatting to it?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;apex:page standardController="Contact"&gt;
    &lt;apex:pageBlock title="Test"&gt;
        &lt;p&gt;{!contact.Birthdate}&lt;/p&gt;
    &lt;/apex:pageBlock&gt;                   
    &lt;apex:detail relatedList="false" /&gt;
  &lt;/apex:page&gt; 
  </code></pre>
  
  <p>This will output a date in the default format:</p>
  
  <blockquote>
    <p>Thu Jul 01 09:10:23 GMT 2009</p>
  </blockquote>
  
  <p>How do I get it (for example) into dd/mm/yyyy format, like this:</p>
  
  <blockquote>
    <p>01/07/2009</p>
  </blockquote>
  
  <p>(Hopefully this is a fairly easy question, but to get the Salesforce community going on here I figure we need a few easy questions.)</p>