Day.js 2KB immutable date library alternative to Moment.js with the same modern API

10/29/2018
time , date , datetime , moment , date-formatting , dayjs

Day.js 2KB immutable date library alternative to Moment.js with the same modern API

Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.

Fast 2kB alternative to Moment.js with the same modern API

Gzip Size NPM Version Build Status Codecov License
Sauce Test Status

dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss');

Leave a Reply

If you leave a message for the first time on this site, the audit will need to display the contents!