Last active
March 29, 2016 12:40
-
-
Save jakeboxer/6043093 to your computer and use it in GitHub Desktop.
lol javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dateValue = 504001800000; // Saturday, December 21st, 1985 at 3:30am EST | |
var date1 = new Date(dateValue); | |
var date2 = new Date(dateValue); | |
console.log(date1 == date2); // false (different instances) | |
console.log(date1 === date2); // false (different instances) | |
console.log(date1 > date2); // false (date1 is not later than date2) | |
console.log(date1 < date2); // false (date1 is not earlier than date2) | |
console.log(date1 >= date2); // true (rofl) | |
console.log(date1 <= date2); // true (ahahahaha) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment