Day.js

Day.js

  • Docs
  • GitHub
  • Languages iconEnglish
    • 中文
    • Русский
    • Español
    • Help Translate

Day.js

Fast 2kB alternative to Moment.js with the same modern API

Get Started

Why Day.js?

2kB

Less JavaScript to download, parse and execute, leaving more time for your code.

Simple

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.

If you use Moment.js, you already know how to use Day.js.

Immutable

All API operations that change the Day.js object will return a new instance instead.

This helps prevent bugs and avoid long debugging sessions.

I18n

Day.js has great support for internationalization. But none of them will be included in your build unless you use them.

Special Sponsors
BestKruRoute Optimizer and Route Planner Software
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.
pay EssayPro to write my research paper
Pay-as-you-go online class help with weekly expert support, no upfront payment.
This requires theplugin to workdependentplugin
Day.js
Community
GitHubGitterSitemap
Copyright © 2025 Day.js