title: Formatting date gives 12/31/1969
body: <p>I'm trying to format a date in the form <code>mm-dd-yyyy</code> to the form <code>yyyy-mm-dd</code>, however, when I try formatting it, it comes out as <code>1969-12-31</code>.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>$custom_date = "10-13-2013";
  
  $formatted_date = date("Y-m-d", strtotime($custom_date));
  </code></pre>
  
  <p>What's wrong?</p>