@avery JS native dates are not good, yeah… Personally when I’m not keen to introduce moment into the dependencies, I like to define a bunch of values like second = 1000, minute = second * 60, etc. That at least allows me to do stuff like new Date(Date.now() + month) for readability, albeit with less accuracy than a proper library. Consider for example that not every month is 30 days. Might be an issue with my method in some cases.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!