title: Inserting Date() in to Mongodb through mongo shell
body: <p>I am inserting document through following query:    </p>
  
  <pre><code>db.collection.insert(  
  {  
        date: Date('Dec 12, 2014 14:12:00')  
  })  
  </code></pre>
  
  <p>But it will give me an error. </p>
  
  <p>How can I insert a date in my collection without getting an error?</p>