newCrystalgirl
MIS
Hello -
I have read many of the previous postings on this subject, but I am new to Crystal and not sure I understand some of the lengthy code examples.
Anyway, I have a report that shows the date difference between a start time and stop time for various tasks. I used the following to exclude weekends:
Local DateTimeVar d1 := {Log_Table.Avail};
Local DateTimeVar d2 := {Log_Table.Keyed};
DateDiff ("d", d1, d2) -
DateDiff ("ww", d1, d2, crSaturday) -
DateDiff ("ww", d1, d2, crSunday)
Now, I need to exclude Holidays as well.
Any suggestions on how to do this would be greatly appreciated.
Thanks
I have read many of the previous postings on this subject, but I am new to Crystal and not sure I understand some of the lengthy code examples.
Anyway, I have a report that shows the date difference between a start time and stop time for various tasks. I used the following to exclude weekends:
Local DateTimeVar d1 := {Log_Table.Avail};
Local DateTimeVar d2 := {Log_Table.Keyed};
DateDiff ("d", d1, d2) -
DateDiff ("ww", d1, d2, crSaturday) -
DateDiff ("ww", d1, d2, crSunday)
Now, I need to exclude Holidays as well.
Any suggestions on how to do this would be greatly appreciated.
Thanks