title: How do I convert a JavaScript date to a MySQL datetime format?
body: <p>For example, my JavaScript date function returns:</p>
  
  <pre><code>Tue Apr 29 2014 14:40:00 GMT-0500 (Central Daylight Time)
  </code></pre>
  
  <p>Is there any function I can use to convert this into the proper DateTime format to save this in MySQL? It should look like:</p>
  
  <pre><code>2014-04-29 14:40:00
  </code></pre>