Sanjay Makwana

Sanjay Makwana

  • 342
  • 4.3k
  • 681.8k

How to check if string is valid date or not?

Aug 5 2021 1:22 PM

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)