Optimized date filter