Improve date validator

Space inside empty hash literal braces detected.