Day.js
A lightweight 2kB date library with a Moment.js-like API for modern browsers
About Day.js
Day.js is a fast, minimalist JavaScript library for parsing, validating, manipulating, and displaying dates and times. It offers a largely Moment.js-compatible API while reducing bundle size and improving performance. Features include immutability, internationalization support, and a simple API for common date operations.
FAQ
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. It is a fast 2kB alternative to Moment.js.
Yes, all API operations that change the Day.js object will return a new instance instead, which helps prevent bugs and avoid long debugging sessions.
Day.js has great support for internationalization, but none of the I18n features will be included in your build unless you use them.
You can find the documentation on the Day.js website, and the source code is available on GitHub.
Alternatives to consider
Community ratings & full listBadges
Promote Day.js giving it more exposure, by adding these badges to your website, documentation, or product listing. Each badge links back to Day.js page on Webfolio.
<a href="https://www.webfolio.to/tools/day-js?utm_source=badge&utm_campaign=badge" target="_blank" rel="noopener noreferrer"><img src="https://www.webfolio.to/badges/featured_color.svg" alt="Featured on Webfolio" style="max-width: 150px" /></a>
Categories
Claim this tool
Are you the founder? Claim your profile to update details and track views.