我想比较一下MongoDB和我约会的日期。 today: function() { return Posts.find({createdAt : { $gte : today}}) // show posts created in "future" , so this function must return nothing
尝试在mongodb中保存像dd/mm/yyyy这样的日期格式,但是这是像2020-06-01T18:30:00.000Z那样保存的。我想在mongodb.How中保存像2020-06-01这样的数据吗?这里我的代码:const mongoose = require('mongoose');
var userSchemaData = new mongoose.Schema