title: DATETIME in Javascript in Database
body: <p>I'm trying to store a <code>DATETIME</code> in my Database using Javascript, there is just one problem, it doesn't store the <code>DATETIME</code> which was set to <code>DATETIME</code> in the database.</p>
  
  <p>This is how I store and get the <code>DATETIME</code>,</p>
  
  <pre><code>var currentTime = new Date().toISOString().slice(0, 19).replace('T', ' ');
  query('UPDATE `users` SET `claimed`='+currentTime+' WHERE`id`='+pool.escape(user.steamid));
  </code></pre>
  
  <p>The problem is that the database doesn't update, but it can't be the fault of the database, did I miss something? Can you not store a Javascript "String" as Datetime?</p>
  
  <p>Thanks.</p>