Date validation.