You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
I know that holidays varies by country, state, city, province, etc
I think would be good have a way to set the holidays, with a array of month/date
For instance with the US federal holidays would be something like this moment.setHolidays(['January 01', 'January 18', 'February 15', 'July 04', 'May 30', 'September 5', 'October 10', 'November 11', 'November 26', 'December 26'])
For NY we would push some more days to the list: moment.addHolidays(['February 12', 'November 08', 'December 25'])
Them when we use methods of moment-bussiness it consider these days not as weekdays, and not as weekendDays.
We can also create methods to count holidays.
What do you think?
The text was updated successfully, but these errors were encountered:
I know that holidays varies by country, state, city, province, etc
I think would be good have a way to set the holidays, with a array of month/date
For instance with the US federal holidays would be something like this
moment.setHolidays(['January 01', 'January 18', 'February 15', 'July 04', 'May 30', 'September 5', 'October 10', 'November 11', 'November 26', 'December 26'])
For NY we would push some more days to the list:
moment.addHolidays(['February 12', 'November 08', 'December 25'])
Them when we use methods of
moment-bussiness
it consider these days not as weekdays, and not as weekendDays.We can also create methods to count holidays.
What do you think?
The text was updated successfully, but these errors were encountered: