We are trying to insert a document with the current date as it\'s field. We are writing in java using eclipse plugin for mongodb. We want to execute the Date()
Date()
You can do it trying something like this:
db.example.insert({"date":ISODate("2016-03-03T08:00:00.000")});