Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
local datevar startdate;
local datevar enddate;
numbervar bdays;
startdate:= {MyTable.StartDate};
enddate:= {MyTable.EndDateOrderDate};
bdays:=
(
DateDiff ("d", fd, ld) -
DateDiff ("ww", fd, ld, crSaturday) -
DateDiff ("ww", fd, ld, crSunday)
)
;
if DayOfWeek (startdate) in [1,7] then bdays := bdays -1;
bdays
[code]
Do consider public holidays though and for this I have seen a formula on Ken Hamady's website [URL unfurl="true"]www.kenhamady.com/formula.html[/URL]
ShortyA
ShortyA