Day.js
Lightweight immutable date library with a Moment-compatible chainable API, wrapping a Date in a small object and extending formatting, relative time, timezone and calendar behavior through optional plugins.
Day.js at day.js.org is a free MIT lightweight immutable date library with a Moment-compatible chainable API, npm dayjs 1.11.23 no declared Node engines, wraps native Date in an immutable object for formatting parsing add subtract relative and comparison calls in one line, on-demand plugins for UTC timezone relative time week locales and calendars, core a few kilobytes for browser and Node, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Day.js free?
Day.js: Day.js is free open-source software released under the MIT License; the dayjs package latest 1.11.23 on npm does not declare a Node engines range. It wraps the native Date in an immutable object with a chainable interface close to Moment, so formatting, parsing, add/subtract, relative and comparison calls read in one line. Plugins add UTC, timezone, relative time, week-of-year, custom locales and calendar formats, loaded on demand. The core stays around a few kilobytes and works in browsers and Node. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Day.js free?
The code is free to self-host, but a hosted plan from the vendor may not be. Day.js publishes its source, so cost depends on where you run it.
How much does Day.js cost?
Day.js is free open-source software released under the MIT License; the dayjs package latest 1.11.23 on npm does not declare a Node engines range. It wraps the native Date in an immutable object with a chainable interface close to Moment, so formatting, parsing, add/subtract, relative and comparison calls read in one line. Plugins add UTC, timezone, relative time, week-of-year, custom locales and calendar formats, loaded on demand. The core stays around a few kilobytes and works in browsers and Node. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Day.js's current pricing?
On Day.js's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Day.js?
A wrapped Date object supports chainable parsing, formatting and arithmetic calls, and optional plugins extend timezone, relative time and locale behavior without growing the default core.
How does pricing work?
The package installs free under MIT with no seat license; the browser or Node runtime follows its own terms, and commercial date support would be outside the open-source project.
How does Day.js compare with other tools in Dev Workflow & Productivity?
Day.js is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Day.js | Open source | Day.js is free open-source software released under the MIT License; the dayjs package latest 1.11.23 on npm does not declare a Node engines range. It wraps the native Date in an immutable object with a chainable interface close to Moment, so formatting, parsing, add/subtract, relative and comparison calls read in one line. Plugins add UTC, timezone, relative time, week-of-year, custom locales and calendar formats, loaded on demand. The core stays around a few kilobytes and works in browsers and Node. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| date-fns | Open source | date-fns is free open-source software released under the MIT License; the date-fns package latest 4.4.0 on npm does not declare a Node engines range. Date operations are small standalone functions applied to a Date instance: formatting, parsing, adding or subtracting units, comparing start of day, durations and timezone-aware helpers are imported only where used, and locales ship as separate modules. It stays immutable in style and is commonly used in browser and Node applications where bundle size matters. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Moment.js | Open source | Moment.js is free open-source software released under the MIT License; the moment package latest 2.31.0 on npm declares support for any Node version. It has historically wrapped dates in a mutable object with chainable parsing, formatting, manipulation, relative time and timezone plugins, and remains widespread in older Node and browser codebases. Since 2020 the project has marked itself legacy and maintenance mode: it ships security patches and critical fixes rather than new features, and its own documentation recommends modern alternatives for greenfield work. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Day.js's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: Day.js is free open-source software released under the MIT License; the dayjs package latest 1.11.23 on npm does not declare a Node engines range. It wraps the native Date in an immutable object with a chainable interface close to Moment, so formatting, parsing, add/subtract, relative and comparison calls read in one line. Plugins add UTC, timezone, relative time, week-of-year, custom locales and calendar formats, loaded on demand. The core stays around a few kilobytes and works in browsers and Node. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
date-fns
Modular functional date utility library that exposes small per-function imports for parsing, formatting, arithmetic, comparisons, durations and locales, keeping the bundle tree-shakable instead of shipping one mutable Date wrapper.
Moment.js
Classic mutable JavaScript date and time library with a wide legacy codebase, now officially in maintenance mode: the project accepts security fixes and does not add new features, so new projects generally evaluate dayjs, date-fns or Luxon first.
Tool Information
- Official Websiteday.js.org
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
