Simplify date filter implementation.