SyntaxFix
Write A Post
Hire A Developer
Questions
if (date1.getTime() > date2.getTime()) { alert("The first date is after the second date!"); }
Reference to Date object