8
Answers

How to check if string is valid date or not?

Sanjay Makwana

Sanjay Makwana

3y
1.1k
1

I want to check if the string is a valid date or not.

Date.parse() is not working in this case, because if I pass a string in Date.parse(), it is returning a number.

Answers (8)