简体   繁体   中英

Mongo DB date and time

I am new to mongoDb, May i know the difference between Date and TimeStamp commanads in the collections with example.?

example: db.collection.find({ DateAdded : { $gt:ISODate('2020-09-18T21:07:42.313+00:00'), $lt:ISODate('2020-09-19T21:08:42.313+00:00')}})

我已经参考了 MongoDb 文档,但没有示例,因此很难理解是否还有其他资源

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM