MongoDB基于当前时间的操作

减数单位为毫秒

 

db.getCollection("Manifest").find({
"IsSuccess": true,
$and:[{"UpdateOn":{$gte:new Date(new Date()-7*24*60*60000)}},{"UpdateOn":{$lte:new Date(new Date()-3*24*60*60000)}}]
}).sort({ "UpdateOn": -1 })

 

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2021-11-18
  • 2021-12-19
  • 2022-02-06
  • 2021-08-07
  • 2021-10-25
猜你喜欢
  • 2021-11-06
  • 2021-07-21
  • 2021-09-01
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案