You don't need any outside libraries to compare whether one date is before another date in JavaScript.
Because subtracting two date objects gives you the difference between the two dates in ms
masteringjs.io/tutorials/fun…#JavaScript#CodeNewbie
Bloated `devDependencies` slowing down your npm install?
You can install just `dependencies`, avoiding `devDependencies`, with `npm install --production`
#JavaScript#CodeNewbie
To compare whether two date objects are equal in JavaScript, we recommend converting them to numbers using `valueOf()`.
You can also convert them to strings using `toString()` for readability in test assertions.
masteringjs.io/tutorials/fun…#JavaScript#CodeNewbie