It isn't clear how this system might respond to a non-american user who utilizes day-month-year, as opposed to the American system month-day-year.
Also wanted to point out another potential regex error on Line 79 regarding the month/day part of the:
var dateFormat = /[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]/;
It isn't clear how this system might respond to a non-american user who utilizes day-month-year, as opposed to the American system month-day-year.
Also wanted to point out another potential regex error on Line 79 regarding the month/day part of the:
var dateFormat = /[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]/;
This allows the invalid date:
99-99-9999