title: How to change date format in sequelize ORM Query?
body: <p>I have this model</p>
  
  <pre><code>var Loans = sequelize.define('Loans', {
      book_id: DataTypes.INTEGER,
      patron_id: DataTypes.INTEGER,
      loaned_on: DataTypes.DATE
  }
  </code></pre>
  
  <p>Querying is done like this below.</p>
  
  <pre><code>Loans.findAll().then(function(loans) {
     res.render('book_detail', {loans: loans});
  });
  </code></pre>
  
  <p>My question is, How do I change <code>loaned_on</code> field in just <code>YYYY-MM-DD</code> format in query result, and do not want time stamp. </p>
  
  <p>Currently <code>loaned_on</code> field value displaying as <code>Sun Jan 29 2017 00:00:00 GMT+0000 (GMT)</code> in the html form field and in the <code>db</code> value stored as <code>2017-01-29 00:00:00.000 +00:00</code>.</p>
  
  <p>Btw, <code>db</code> is <code>sqlite3</code></p>