I am new to mongoose.I am trouble in storing time slots in mongoose db. I have to store time slot for example - 10:00 to 14:00,where startingTime is 10:00 and endTime is 14:00.
So each time when I query the documents in between these time slots of any day.I should get those documents that has these time slots.
I want to make query that do comparison on time slots not on datetime parameter.
I am getting whether I have to store them as string or date ?
Please help.