I have mongo documents containing a last_active date and a created date. I would like to search for all documents where the day of last_active is not equal
You can use a function within your query:
db.mycollection.find({ $where: function() { return this.created.getDate() !== this.last_active.getDate(); } })