DEV Community

Discussion on: Vanilla JavaScript Check if Date is in the Past

Collapse
 
savagepixie profile image
SavagePixie • Edited

Also, shouldn't the comparison operator be just less than? If it's equal it's not past but present (or, to be more precise concurrent with the second date, since that could be any point in time)