title: Convert datepicker time to mysql datetime format in PHP
body: <p>Is there a way I can convert a date in this format: 08/19/2014 1:45 pm</p>
  
  <p>into MySQL datetime format like 2014-08-19 13:45:00.</p>
  
  <p>I tried using something like </p>
  
  <pre><code>date("Y-m-d H:i:s", $myTime);
  </code></pre>
  
  <p>but I don't think it likes the 'pm' and gives back 1969-12-31, giving error:</p>
  
  <p>"A non well formed numeric value encountered"</p>