not calculate weekends
Collapse
X
-
Just remove the line //this is for readibility
try this instead
Code:$numberOfDays = disponibilit; ic = ext\workingTime\addWorkingDays(datetime\now(), $numberOfDays);
Leave a comment:
-
ic = datetime\diff(datetime\now(), disponibilit,'days') it works but it calculates over 7 days
$numberOfDays = disponibilit ; // ceci juste pour la lisibilité
ic = ext\workingTime\addWorkingDays(datetime\now(), $numberOfDays); it doesn't work it no longer calculates -
Code:$numberOfDays = availability; // this just for readability ic = ext\workingTime\addWorkingDays(datetime\now(), $numberOfDays);
Leave a comment:
-
Your formula from the first post it not supposed to take into account working calendar. You need to use other functions from the article.Leave a comment:
-
I think that you could use the working time calendar for this. Take a look:
Leave a comment:
-
not calculate weekends
Hello
How to add to this code of did not calculate weekends
ic = datetime\diff(datetime\now(), availability, 'days')
Tags: None
Leave a comment: