I have been trying to filter all the objects which are created within a specific date range as well a specific time range. For example: Consider the following scenario if following are my filter's start date, end date, start time and end time. startDate: 23/01/2015 endDate: 25/01/2015 startTime: 10:00:00 endTime: 16:00:00
So I need to filter all the objects which are created between the startDate(23/01/2015) and endDate(25/01/2015). Also the creation time should be between startTime(10:00:00) and endTime(16:00:00). So an object which is created on 24/01/2015 but at 09:00:00 will not be filtered according to my use case.
Is there any mongo query to achieve the same where we can pass date and time separately. If not kindly suggest some workaround.