Now filtering input according to date.