mongodb database has a day field that stores the string type, as shown in figure
.
now I"m going to filter the data for different time periods through the day field, but write
like this req.collections.dayTrainings.count({ "phone": req.param("phone"), "day": { $lte: theday } }, function (error, trainingCount) {})
the data found is not correct because it is a string type. What should I do to correctly find out the data for a period of time