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.
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.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Aug 5, 2021, 11:53 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 5, 2021, 12:51 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 5, 2021, 9:57 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 5, 2021, 10:39 AM EDT
Basem AlshabaniRank #3,323 · 432 reputationPosted Aug 5, 2021, 9:57 AM EDT
Sanjay MakwanaRank #663 · 3.6K reputationPosted Aug 5, 2021, 10:34 AM EDT
Sanjay MakwanaRank #663 · 3.6K reputationPosted Aug 5, 2021, 11:32 AM EDT
Sanjay MakwanaRank #663 · 3.6K reputationPosted Aug 5, 2021, 12:29 PM EDT