title: Rails convert string containing datetime to date
body: <p>I have a String which contains the following string <code>2012-03-06 00:00:00 UTC</code> I want to change it into a date object so that is should look like this <code>03-06-2012</code> and the same is to be converted in String <code>03-06-2012</code> so that the jquery datepicker can take it.</p>
  
  <p>All this conversion needs to be done at view .html.erb</p>