How to ensure the date string is in ISO 8061 format in javascript

前端 未结 0 903
挽巷
挽巷 2020-12-31 11:04

I have to understand whether the given string is in YYYY-MM-DD format.

I was tetsting using the following code snippet:

const isValidDate          


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