I have the regular expression as:
var validDate = /^\d{4}-((0\d)|(1[012]))-(([012]\d)|3[01]) (([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9]):([0-5]?[0-9]).([0-9]?[0-9]?[0-9])$/i.test(value);
The value I am providing is Nov 21, 2014 12:00:00 AM.
Can anybody please help me in providing with the actual date expression (value) that will actually test the regex?
2014-02-31 23:00:59999that will pass the above test, exposing two bugs, one easily fixed, the other not so easy.2014-02-31 23:00:666also "works"