Answers for "check if a string is date javascript"

2

javascript check if two date are ugual

const isSameDate = (dateA, dateB) => {
  return dateA.toISOString() === dateB.toISOString();
};
const r = isSameDate(new Date(2010, 10, 20), new Date(2010, 10, 20));
console.log(r); //> true
Posted by: Guest on March-30-2020
2

check if string is datestring javascript

moment("2015-06-22T13:17:21+0000", moment.ISO_8601, true).isValid(); // true
Posted by: Guest on June-26-2020

Code answers related to "check if a string is date javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language