Рет қаралды 20,603
Working with JavaScript dates is kind of a mess, but you can make it easy with date-fns. It's a library with a bunch of helper functions from adding and subtracting dates and hours to formatting timestamps in any language you need. Stop using Moment.js and clogging up your projects with a bunch of unused code when you can just use date-fns instead...