ridler / myCal

A REST API to manage calendar events.
0 stars 0 forks source link

Question about Date format on line 79 #6

Open antsankov opened 9 years ago

antsankov commented 9 years ago

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