title: Converting input time 00 00 AM to DATETIME for MySQL
body: <p>How can convert my time received from my $_GET variables as two digit values from a menu example:</p>
  
  <pre><code>$hours = 04;
  $minutes = 45;
  $ampm = 'PM';
  </code></pre>
  
  <p>into the correct format to insert into a DATETIME field in MySql</p>