Forum Discussion
ChrisChris
8 years agoQrew Assistant Captain
Take out the parenthesis that have numbers inside them. Make it like this:
"[Date Created]+Days([Priority])". Sans quotes.
this ^^^ is the only line of code you need.
ChrisChris
8 years agoQrew Assistant Captain
if(
dayofweek([Date Created]+Days([Priority]))=6,
[Date Created]+Days([Priority])+2,
dayofweek([Date Created]+Days([Priority]))=0,
[Date Created]+Days([Priority])+1,
[Date Created]+Days([Priority])
)
So this code adjusts the Due Date to Monday if the Priority date lands on a Saturday or a Sunday. 0=sunday, 6=Saturday. The default value will be Date Created plus priority days.