I'm using JavaScipt's new Date(datestring)
to parse user input on IE11.
The specific line of code is
var date = new Date(enteredText);
It accepts any parameter for day field - for example, 5/50/1997
parses to June 19, 1997
, because June 19 would be the 50th day of May.
Is there a way to force it to not do this and to only accept real dates?