skip to Main Content

How to fetch the data btwn two diff date and time in MongoDB

How to fetch the data btwn two diff date and time in MongoDB [ { "key":"2", "start_date": "2023-01-03T03:30:00.000Z", "end_date": "2023-01-03T05:30:00.000Z", }, {"key":"1", "start_date": "2023-01-04T03:30:00.000Z", "end_date": "2023-01-04T05:30:00.000Z", }, { "key":"1", "start_date": "2023-01-05T03:30:00.000Z", "end_date": "2023-01-05T05:30:00.000Z", } ] db.collection.find({ {"key":"2"}, $or: [ {…

VIEW QUESTION
Back To Top
Search