Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

compare two date objects

var d1 = new Date();
var d2 = new Date(d1);
console.log(d1.getTime() === d2.getTime()); //True
console.log(d1 === d2); // False
Source by github.com #
 
PREVIOUS NEXT
Tagged: #compare #date #objects
ADD COMMENT
Topic
Name
7+5 =