Make sure date is compared to date.