So your question is, can you change the way Date.parse works so that low-double-digit dates are interpreted as dates after 2000?
Yes, it can be done, just a Date.parse shadow with your own parsing function.
// don't do this! Date.parse = function (str) { }
Of course, this is a very bad idea for shadow properties (including βmethodsβ or function properties) of host objects, because this will lead to incorrect behavior in other scripts that expect these properties to work in a certain way.
It is also a bad idea to use double-digit dates, but this may not be under your control. If this does not go beyond your control, I would advise you to simply forget the 2-digit dates and use the value of the whole year.
Dagg nabbit
source share