We stored a date using unix timestamp in MongoDB, how do I get the date when I do the query? Is there a way to display timestamp in ISODate format?
Mongodb 4.0 has introduced $toDate aggregation, so you can try with it
db.collection.aggregate([ { "$project": { "toDate": { "$toDate": "$unixTimestamp" } }} ])
Try it here