Answers for "dedecting invalid date in js"

0

dedecting invalid date in js

function isValidDate(d) {
  return d instanceof Date && !isNaN(d);
}
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language