moment.js validating invalid date “2013-10-311”

后端 未结 3 401
北恋
北恋 2021-01-04 02:33

Running moment.js, 2.2.1

moment(\"2010-10-319\", [\"YYYY-MM-DD\"]).isValid()

... returns true, and the moment object would be

3条回答
  •  暖寄归人
    2021-01-04 03:20

    create an Issue on the Git Repository from momentjs https://github.com/moment/moment/ the best way to handle this error.

提交回复
热议问题