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