I am using MongoDB through the Casbah driver and I am storing documents which contain a date field, which is in my java world a Java DateTime. I would need to perform similar queries:
- Remove all records with day any but hour falling into a certain interval
- Remove all records with day any but hour not a multiple of 3.
- Find all records with day any and hour 11
Is there a simple way to do it , given that the conversion helpers for Joda DateTime store a single field? Should I probably refactor it to have a Time Field and a Date Field?