Moment.js Date validation DD-MMM-YYYY

后端 未结 0 1617
天命终不由人
天命终不由人 2021-01-19 12:37

I expect this to return true, but instead it returns false.

moment("01-Jan-2020", "DD-MMM-YYYY", true).isValid()//returns false (I expect          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题