title: MongoDB Compass - How To Insert Date Type?
body: <p>When inserting a document into a MongoDB database with MongoDB Compass how do I insert the current date?</p>
  
  <p>I have tried like so:</p>
  
  <p><a href="https://i.stack.imgur.com/tGB7M.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tGB7M.png" alt="enter image description here"></a></p>
  
  <p>But as you can see there is an error.</p>
  
  <p>How do I insert the current date using MongoDB Compass?</p>