title: Get day of month from date
body: <p>I have a date with the format "Wed Jun 05 2013 00:00:00 GMT+0100 (CET)", and I want to get it in the <code>yyyy-mm-dd</code> format.</p>
  
  <p>I tried this:</p>
  
  <pre><code>var year = mydate.getFullYear();
  var month = mydate.getMonth();
  var day = mydate.getDay(); 
  </code></pre>
  
  <p>I got the year and the month, but I can’t get the day.</p>