title: How to get current datetime with format Y-m-d H:M:S using node-datetime library of nodejs?
body: <p>I'm using <a href="https://www.npmjs.com/package/node-datetime/" rel="noreferrer">node-datetime</a> library. I want to get current datetime with format such as Year-month-day hour-minute-second </p>
  
  <p>ex : <em>2016-07-04 17:19:11</em></p>
  
  <pre><code>var dateTime = require('node-datetime');
  var dt = dateTime.create();
  dt.format('m/d/Y H:M:S');
  console.log(new Date(dt.now()));
  </code></pre>
  
  <p>But my result such as:</p>
  
  <blockquote>
    <p>Mon Jul 04 2016 17:19:11 GMT+0700 (SE Asia Standard Time)</p>
  </blockquote>