I have tried Date.parse()
, Date()
and many other solution but no proper solution yet without checking it's pattern using regex(or external package like moment.js) first.
Attaching screenshot of sample which should be invalid date
e.g. Test - 7
I have tried Date.parse()
, Date()
and many other solution but no proper solution yet without checking it's pattern using regex(or external package like moment.js) first.
Attaching screenshot of sample which should be invalid date
e.g. Test - 7