Forum Discussion
MarkShnier__You
Qrew Legend
6 years agoHere is one solution.
var number DaysToAdd = If(
DayOfWeek([Date Shipped]) = 6,0, // Saturday
DayOfWeek([Date Shipped]) = 0,0, // Sunday
1) // else 1
WeekDayAdd([Date Shipped],$DaysToAdd)
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------
var number DaysToAdd = If(
DayOfWeek([Date Shipped]) = 6,0, // Saturday
DayOfWeek([Date Shipped]) = 0,0, // Sunday
1) // else 1
WeekDayAdd([Date Shipped],$DaysToAdd)
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------
- ChrisNewsome6 years agoQrew CaptainI'm getting an error:
A variable declaration must end with a semi-colon.
however, I tried adding one to no effect.
------------------------------
Chris Newsome
------------------------------- ChrisNewsome6 years agoQrew CaptainFigured it out. I was putting the semi colon in the wrong spot:
var number DaysToAdd = If(
DayOfWeek([Date Shipped]) = 6,0, // Saturday
DayOfWeek([Date Shipped]) = 0,0, // Sunday
1) // else 1
;
WeekDayAdd([Date Shipped],$DaysToAdd)
Works great now! Thanks again Mark!
------------------------------
Chris Newsome
------------------------------ - EvanMartinez6 years agoModeratorHi Chris,
What does your finished formula look like? Is the closing semi colon on the variable possibly behind the // in the formula Mark suggested and thereby getting ignored by the formula reader and greyed out? if so you may want to try:
DayOfWeek([Date Shipped]) = 0,0, // Sunday
1); // else 1
Nevermind, I see in your response that you got it.
------------------------------
Evan Martinez
Community Marketing Manager
Quick Base
------------------------------