Compare Two Dates in JavaScript: Greater Than, Less Than, and Not in the Past | CodeTrail