Making `.dates()` queries work.