Check for DateTime on date validation. Fixes #1088.