Created
November 12, 2013 18:48
Revisions
-
epicserve created this gist
Nov 12, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ var date1 = new Date(); var date2 = new Date(2099, 10, 11); console.log(date1); console.log(date2); console.log(date1 >= date2); console.log(date1 <= date2); console.log(date1 == date2); console.log(date1 === date2); // $ node js_date_test.js // Tue Nov 12 2013 10:47:30 GMT-0800 (PST) // Wed Nov 11 2099 00:00:00 GMT-0800 (PST) // false // true // false // false