title: Change date format in the view to dd/mm/yyyy
body: <p>The default date format in Ruby is yyyy-mm-dd, but I needed them to be dd/mm/yyyy in the view</p>
  
  <p>I have wrote a date_format file in <code>config/initializers</code> as:</p>
  
  <pre><code>Time::DATE_FORMATS.merge!( :uk_format =&gt; '%m/%d/%Y')
  </code></pre>
  
  <p>This didn't work since I need to call <code>date.to_s(:uk_format)</code> in order to use this format. But since I'm using <code>&lt;%= f.text_field :paymentDate %&gt;</code> to display the date, I'm not sure I can add <code>to_s</code> to this case.</p>
  
  <p>Can someone help me out please.</p>
  
  <hr>
  
  <p><strong>Edit 1</strong></p>
  
  <p>Actually date.to_s(:uk_format) doesn't work either, how do I use initializer properly.....?</p>