title: How do I format dates from Mongoose in Node.js?
body: <p>I'm trying to change the format of the dates I'm getting from my Mongo database. Currently they look like this:</p>
  
  <pre><code>Fri Sep 16 2011 19:05:17 GMT+0900 (JST)
  </code></pre>
  
  <p>I've tried calling <code>.toString('yyyy-MM-dd')</code> on them but nothing changes. I don't know if they're <code>Date</code> objects or just raw strings.</p>
  
  <p>I've tried checking the Mongoose manual and googling a bunch, but not found anything yet.</p>
  
  <p>Any ideas?</p>