Ensures date is a date