Skip to content

Moment.js with support for business days & bank holidays

Notifications You must be signed in to change notification settings

extracard/moment-holidays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moment-holidays

Moment.js with support for business days & bank holidays

Usage

To check if today is a business day, taking holidays into account:

moment().isBusinessDay()

To get the next business day, taking holidays into account:

moment().nextBusinessDay()

This plugin wraps moment-business-days, which wraps moment. See those for more info.

Caveats

The plugin will only load holidays within two years after startup.

About

Moment.js with support for business days & bank holidays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published