title: Convert date created by jquery datepicker into a standard mysql dateformat
body: <p>I am using the following jquery date &amp; time picker on a diary page. 
  <a href="http://trentrichardson.com/examples/timepicker/#rest_examples" rel="nofollow">http://trentrichardson.com/examples/timepicker/#rest_examples</a></p>
  
  <p>Its quick and easy to use and makes a date thats easy to read but the problem I am having is that im not sure how on earth to convert it to a standard mysql date format to save it to the database.</p>
  
  <p>At the moment when I select a date and time it will add it to the timedate input box as something like this >> 
  Wed January 9, 2013 01:43 pm</p>
  
  <p>If I then hit submit, it doesn't get saved to the database.</p>
  
  <p>Does anyone know how I can convert this into a format in the php that processes the posted data and save it as usual, as its driving me round the bend trying to work out a way of converting it ?.</p>
  
  <p>The code im currently using for the jquery part is the following :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function(){
  $('#timedate').datetimepicker({
  timeFormat: "hh:mm tt",
  dateFormat: "D MM d, yy"
   });});&lt;/script&gt;
  </code></pre>
  
  <p>which creates a date like :</p>
  
  <pre><code> Wed January 9, 2013 01:43 pm
  </code></pre>