Database

[{"createdAt":ISODate("2013-10-01T00:00:00.000Z")}]

Query

db.collection.aggregate([{"$project":{"createdAt":{"$toLong":"$createdAt"}}}])

Result