📅  最后修改于: 2022-03-11 14:59:22.590000             🧑  作者: Mango
const moment = require('moment')
const today = moment().startOf('day')
MyModel.find({
createdAt: {
$gte: today.toDate(),
$lte: moment(today).endOf('day').toDate()
}
})