title: Get Current Date/Time with JavaScript
body: <p>I need to get the current date and time javascript in the following format <br></p>
  
  <p>YYYY-MM-DD HH:MM:SS</p>
  
  <p>But cannot work out how to do it.</p>
  
  <pre><code>var d = new Date();
  timesheetGrid.cellById(rId,15).setValue(d);
  </code></pre>
  
  <p>This is where I am using the data.</p>
  
  <p>Any help would be greatly appreciated.</p>