title: Current date and time is not inserting in table by this query
body: <pre><code>var currentDate=new Date().toLocaleString().slice(0,10);
  
  var now = new Date().toLocaleTimeString();
  
  if(data = true){
  
  con.query('INSERT INTO rooms (user_id,current_date,current_time) VALUES (?,?,?)',[user_id,currentDate,now],function(error,results,fields){
                      if(error) throw error;
  </code></pre>
  
  <p>this error occur: 
  MySQL server version for the right syntax to use near 'current_date,current_time</p>