How do I get the timestamp from the MongoDB id?
As of Mongo 2.2, this has changed (see: http://docs.mongodb.org/manual/core/object-id/)
You can do this all in one step inside of the mongo shell:
document._id.getTimestamp();
This will return a Date object.