Answer the question
In order to leave comments, you need to log in
Date validation in JS?
Is there an analogue of the checkdate function php.net/manual/ru/function.checkdate.php in JS for checking the correctness of the date?
Answer the question
In order to leave comments, you need to log in
momentjs.com
npm install moment;
let date = somethingString;
let parsedDate = moment(date);
if (!parsedDate) {
return;
}
// continue your magic
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question