Date Diff

S

SageOne

Is there a function that calculates the date diff between two dates but
discounts weekends?

Basically I need to calculate the business day date diff.
 
S

SageOne

Found that code.....that for you help guys......Yes, I would like to also
exclude holidays....is there a way to specify the holidays? Some holidays
are not observed for the purposes of my report.
 
J

John W. Vinson

Found that code.....that for you help guys......Yes, I would like to also
exclude holidays....is there a way to specify the holidays? Some holidays
are not observed for the purposes of my report.

And of course different companies and countries celebrate different holidays.
The typical solution is to have a Holidays table with one record for each
holiday date. Check the websites again, most published solutions have a
Holidays table and use it in the calculation.
 
Top