Fix for error in input date (example: 15/3/1945)

Entering a date in the format DD/MM/YYYY 15/3/1945 returned error.
Reviewing the code, it seems the suggested patch fixes this issue.
Please review the code change and advise if true.

Nadav :-)