title: cannot format the date
body: <p>I need to store the date in the database in the form of day-month-year ("<code>29-04-2014</code>"). I have used the following code and inserted in the database. But it is saved in the form of "<code>Apr 29 2014 12:00:00:000AM</code>".</p>
  
  <pre><code>$date = date("m.d.y");
  </code></pre>