Date type validation.