[consultation] refactor filtering by date.