I\'m trying to detect with Moment.js if a given date is between two dates. Since version 2.0.0, Tim added isBefore() and isAfter() for date compari
isBefore()
isAfter()
I do believe that
if (startDate <= date && date <= endDate) { alert("Yay"); } else { alert("Nay! :("); }
works too...