If you use one of the drivers, you create a date through this Date Language class. For example, in Javascript (for example, Node.js) it will be "new date (11,11,11)". If you are using the MongoLab REST API or the admin user interface, you represent dates with this syntax:
{ "$date": "2010-10-28T23:07:11Z" }
source
share