Skip to main content

easy-dates

Forget nonsense likenew Date(Date.now()).getTime() / 1000

UsedateNowUnix() instead.

Easy to use

All functions and parameters use human readable words. No more weird letter codes to get the right output.

Focus on building

Forget about whether dates are returned in seconds or milliseconds.easy-dates removes the complexity from dates.

Tiny bundle size

Many of the 'go to' date libraries are over 4mb, and deprecated. At only a few kilobytes, easy-dates is tiny. And we plan to keep it that way.

Sound good?

It's as easy as running Copiednpm install easy-dates in your terminal.

Check the docs for detailed instructions.