Day.js

Day.js

  • 文档
  • GitHub
  • Languages icon中文
    • English
    • Русский
    • Español
    • 帮助我们翻译

Day.js

Moment.js 的 2kB 轻量化方案,拥有同样强大的 API

开始使用

为什么使用 Day.js ?

2kB

下载、解析和执行更少的 JavaScript,为您的代码留出更多时间。

简易

Day.js 是一个轻量的处理时间和日期的 JavaScript 库,和 Moment.js 的 API 设计保持完全一样。

如果您曾经用过 Moment.js, 那么您已经知道如何使用 Day.js 。

不可变的

所有的 API 操作都将返回一个新的 Dayjs 对象。

这种设计能避免 bug 产生,节约调试时间。

国际化

Day.js 对国际化支持良好。但除非手动加载,多国语言默认是不会被打包到工程里的

Special Sponsors
BestKruRoute Optimizer and Route Planner Software
Warp sponsorship
Warp is built for coding with multiple AI agents
Chudovo - Front-end development services
Balancing coding projects and academics? Discover a professional essay service that can help streamline your workload.
EssayService.com allows you to generate high-quality essays instantly, providing students with custom-written papers that are both timely and plagiarism-free.
Thousands of students rely on write my essay EssayHub.com to handle their toughest assignments with ease.
WriteMyEssay.com is a reliable company that will write your essay, ensuring top-notch quality and timely delivery every time.
pay EssayPro to write my research paper
Pay-as-you-go online class help with weekly expert support, no upfront payment.
Best paper writing service trusted by students for high-quality, plagiarism-free work
paper writing help at WritePaper
这依赖插件,才能正常运行依赖插件
Day.js
Community
GitHubGitterSitemap
Copyright © 2025 Day.js