BrianTyler
IS-IT--Management
I have also posted this request in the DB2 forum in case there is a database solution to the problem, but there could also be a BO (v5.1.7) solution.
Has anyone come up with a slick method of counting the number of weekdays (Mon - Fri) between two dates.
It is easy to calculate the whole weeks, by subtraction and division, but dealing with the odd days is messy.
It gets even more complicated because, if the first date is a Saturday we treat it as Monday, and if the second date is a Saturday we treat it as Friday.
I don't mind if the solution is in a Designer Object or in a Reporter Variable.
Has anyone come up with a slick method of counting the number of weekdays (Mon - Fri) between two dates.
It is easy to calculate the whole weeks, by subtraction and division, but dealing with the odd days is messy.
It gets even more complicated because, if the first date is a Saturday we treat it as Monday, and if the second date is a Saturday we treat it as Friday.
I don't mind if the solution is in a Designer Object or in a Reporter Variable.