Running moment.js, 2.2.1
moment(\"2010-10-319\", [\"YYYY-MM-DD\"]).isValid()
... returns true, and the moment object would be
true
create an Issue on the Git Repository from momentjs https://github.com/moment/moment/ the best way to handle this error.