Skip to content

Instantly share code, notes, and snippets.

@antris
Created November 16, 2011 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antris/1369797 to your computer and use it in GitHub Desktop.
Save antris/1369797 to your computer and use it in GitHub Desktop.
JavaScript Date comparisons are WEIRD
new Date() > new Date() // false
new Date() < new Date() // false
new Date() == new Date() // false
new Date() >= new Date() // true
new Date() <= new Date() // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment