上記のすべての回答はcursorsを使用しています ただし、mongodbは常にaggregationを使用することをお勧めします パイプライン。新しい$dateFromStringを使用 mongodb 3.6で 、非常に簡単です。 https://docs.mongodb.com/ manual / reference / operator / aggregation / dateFromString /
db.collection.aggregate([
{$project:{ created_at:{$dateFromString:{dateString:'$created_at'}}}}
])