title: Post datetime type to database with JavaScript
body: <p>I have a ruby on rails app, where the I have a meeting_time that is stored as a datetime type. I want to post it via an ajax call, but JavaScript seems to only have string or object. Is it possible to convert a string into a datetime in JavaScript before posting?</p>
  
  <p>For example, <code>meeting_time: "2016-11-02 02:31:00"</code>
  posts as a string, or I have tried <code>date=new Date()</code>, but this returns an object.</p>
  
  <p>Thanks!</p>