JavaScript Utility Library
48.6k 2026-04-18

iamkun/dayjs

Day.js is a minimalist 2KB JavaScript library providing a Moment.js-compatible API for parsing, validating, manipulating, and displaying dates and times.

Core Features

Familiar Moment.js API & patterns
Immutable date objects
Chainable operations
Internationalization (I18n) support
Extremely lightweight (2KB)

Quick Start

npm install dayjs --save

Detailed Introduction

Day.js is a modern, lightweight (2KB) JavaScript library designed as a powerful alternative to Moment.js. It offers a largely compatible API, making it easy for developers familiar with Moment.js to transition. With its immutable design, chainable methods, and comprehensive internationalization support, Day.js provides efficient and reliable date and time manipulation for modern web browsers, ensuring minimal impact on bundle size.

OSS Alternative

Explore the best open source alternatives to commercial software.

© 2026 OSS Alternative. hotgithub.com - All rights reserved.