How to insert a MongoDB document with a timestamp from the database server
A little late to the game - but the recent releases of mongodb have $currentDate.
See http://docs.mongodb.org/manual/reference/operator/update/currentDate/
A little late to the game - but the recent releases of mongodb have $currentDate.
See http://docs.mongodb.org/manual/reference/operator/update/currentDate/