title: Any Javascript DateTime Function return MySQL datetime format?
body: <p>I've a function that send ajax request to a server file with parameters. Problem is i want to send current DateTime value to compare it from database. </p>
  
  <p>as MySQL datatime format all datetimes are shown as "2012-02-03 19:50:28" format. </p>
  
  <p>How can i generate it in Javascript. </p>
  
  <p>Another question: Can i add hours to current datetime (to fix server time zone problem)</p>
  
  <p>Thanks in advance</p>