Created a custom filter for dates.