title: convert datepicker date to mysql date
body: <p>I am using datepicker with from and to dates.</p>
  
  <p>When posting these dates in PHP the date format is mm/dd/yyyy.</p>
  
  <p>I need to convert this to MySQL format yyyy-mm-dd</p>
  
  <p>Can it be done like this?</p>
  
  <pre><code>$from = $_GET['from'];
  $phpdate = strtotime( $from );
  $from_date = date( 'Y-m-d', $phpdate );
  </code></pre>
  
  <p>I tried this but it doesn't work.</p>