title: Storing javascript Date() in mySQL
body: <p>I currently have a javascript variable which records the current date and time like so:</p>
  
  <pre><code>var time_of_call;
  time_of_call = new Date();
  </code></pre>
  
  <p>and I need to store it in a MySQL database. When I try to upload it, the column just appears blank but I'm not sure what I'm doing wrong. I know it's not a problem with the mysql query because I have tried entering different values and it works OK.</p>
  
  <p>I have the column set to <code>DATETIME</code> and I am uploading the value unformatted. Could someone please explain what I need to do differently?</p>
  
  <p>Thanks for any help</p>
  
  <p>P.s. I can't use <code>NOW()</code> because I am using that to capture the time that the record is actually captured, and this time_of_call records the time a call actually comes in.</p>