getTimestamp() will give you the date/time from the ObjectId.
You can do the following
var oldest = new Date(new Date() - new Date(30 * 60000));
db.collection.find().sort({ _id: -1 }).forEach(function(item) {
if (item._id.getTimestamp() > oldest){
...
}
});