Remove unused event handler
Refactor parseFormat
Refactor formatDate
Refactor parseDate
When parsing a date, ignore expected separator
Smarter handling of user-inputted year values