title: How to convert date dd/mm/YY to mm-dd-YY format in PHP
body: <p>I have a sample code:</p>
  
  <pre><code>&lt;?php
  $string = '07/01/2014'; // today format d/m/YY
  echo date("m-d-Y", strtotime($string)); // result is 07-01-2014
  ?&gt;
  </code></pre>
  
  <p>=> How t fix it to result is <code>01-07-2014</code> // today format <code>m-d-Y</code></p>