Date.parse "parses" dates that should be invalid #1034

Open
karptonite opened this Issue Sep 24, 2011 · 1 comment

Comments

Projects
None yet
2 participants

karptonite commented Sep 24, 2011 edited by arian

Date.parse "successfully" parses dates that are nonsense, such as "2011-02-41" or "2011-02-4x" or "243blah". These nonsense dates are parsed into 12-31-1969 dates, and then return true with isValid().


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

parse() will not accept year 99 or lower. Only year 100 or higher is accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment