title: PHP Datetime Convert slash to minus
body: <p>I want to convert my datetime 08/11/2013 to 2013-08-11.</p>
  
  <p>I was trying this, but it did not work as it suppose to.</p>
  
  <pre><code>$date = $_POST['gt_date']; // Getting 08/11/2013
  $date = explode("/", $date); // Exploding the / character into array
  $datetime = $date[2] + '-' + $date[0] + '-' + $date[1];
  </code></pre>
  
  <p>Any Ideas?</p>