ESday project icon

ESday

EsDay

EsDay is a JavaScript library inspired by Day.js.

EsDay has an API largely similar to Moment.js (v2.30.1) and Day.js (v1.11.13), but it is written in TypeScript and fully supports es modules. When there are differences between Moment.js and Day.js, the functionality of Moment.js is usually preferred.

Core functions

The EsDay core module has many integrated functions. Details see documentation of Core.

Locales

EsDay supports many locales. A list of the supported locales can be found in the details page.

Plugins

EsDay is extensible by plugins. A list of all available plugins can be found in the plugin documentation.

Differences to Day.js

Differences to Moment.js

Esday uses moment@2.30.1 as api reference.

Using EsDay in an application

Examples of how to use EsDay in an application can be found in the demo apps:

Base on Source Output
Node script Node on console
HTML Html GitHub Pages
Angular Angular GitHub Pages
React React GitHub Pages