Created
September 20, 2011 18:28
-
-
Save evanportwood/1229889 to your computer and use it in GitHub Desktop.
compare date values
This file contains hidden or 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 expired = false; | |
if (new Date("4/5/2008 12:00:00 AM") < new Date()) { | |
expired = true; | |
} | |
alert(expired); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment