Sanjay Makwana

Sanjay Makwana

  • 379
  • 4.3k
  • 760.2k

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)