Skip to content

Instantly share code, notes, and snippets.

@evanportwood
Created September 20, 2011 18:28
compare date values
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