I have a problem with one of my collections. I forgot to add the date when the document was inserted but now need it.
Standard MongoDB ObjectIDs are based on the timestamp where the ObjectId has a method that lets you determine the timestamp
var id = new ObjectId();
id.getTimestamp();
unfortunately Meteor and MiniMongo don’t use ObjectIds but strings as _id. Those strings are not the hexadecimal string representation of the MongoDB ObjectId, but something else.
Does anybody know how to reverse engineer the MiniMongo string id so I can determine the timestamp when the document was inserted?