Day.js
A lightweight 2kB date library with a Moment.js-like API for modern browsers
À propos de 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 à considérer
Voir toutes les alternativesBadges
Faites la promotion de Day.js et donnez-lui plus de visibilité en ajoutant ces badges à votre site web, votre documentation ou votre fiche produit. Chaque badge renvoie vers la page de Day.js sur 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="Mis en avant sur Webfolio" style="max-width: 150px" /></a>
Catégories
Revendiquer cet outil
Vous êtes le fondateur ? Revendiquez votre profil pour mettre à jour les détails et suivre les vues.