title: How do you store datetime in MongoDB given that what I've tried has failed?
body: <p>I'm trying to insert a datetime in MongoDB but I can not.</p>
  
  <p>Here is the method I used:</p>
  
  <pre><code>var mongoose = require('mongoose');
  
  var testSchema = new mongoose.Schema({
  
      date : {
         type : Date 
            }
  });
  
  module.exports = mongoose.model('test', testSchema);
  </code></pre>