Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #javascript #check #date #ugual
ADD COMMENT
Topic
Name
8+7 =