Date range query w/ test cases regarding date handling.