Improve date validator

Final newline missing.