Change the week period on differenceInBusinessDays? #4066
Unanswered
Stuart-wdas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make use of the differenceInBusinessDays and so far the function has been superb, but im wondering if there is a way to change the period of a business week i.e. the default is currently 5 - 2, 5 working days 2 weekend days, is there a way to change the options on the function so the period is 6 - 1, 6 working days 1 weekend day?
const working_days = differenceInBusinessDays(current_date, previous_month, options: { business_days: 6 });Beta Was this translation helpful? Give feedback.
All reactions