All resources
GitHub & Open Source

Day.js

2kB immutable date library, Moment.js-compatible.

Free plan 9/10
Visit website
My rating

9/10

Pricing

Free

Category

GitHub & Open Source

Last reviewed

9 Jun 2026

What it is

Day.js is a tiny (2kB) immutable date-time library with a Moment.js-compatible API. It does parsing, formatting, manipulation and relative time without bloating your bundle — the modern default for date handling in JavaScript and TypeScript projects.

JavaScript Date Library Frontend Starred

Why I use it

I drop Day.js into any JS/TS project that touches dates — same familiar API as Moment but a fraction of the size. No reason to ship Moment.js in 2026.

Setting this up for your project?

I can integrate it properly or recommend a better fit for your case. Let's talk.

Get in touch

More in GitHub & Open Source

Programmer Hasan

Full-Stack Software Engineer building scalable web, mobile & AI-powered applications. Alhamdulillah for everything!

© 2026 Programmer Hasan. All rights reserved.

Designed & developed by Programmer Hasan