How to Convert mongodb ISODate to string in mongoDB?

前端 未结 4 1327
悲哀的现实
悲哀的现实 2021-01-12 15:02

I have my ISODate in mongo as ISODate and I want to just that in string format with a specific datetime format.

Here is the ISODate:

ISODate(\"20         


        
4条回答
  •  温柔的废话
    2021-01-12 15:17

    I assume that what you need is the dateToString function https://docs.mongodb.com/manual/reference/operator/aggregation/dateToString/

提交回复
热议问题