Workday Calculation (Class Module)

Class that can be used to calculate target dates, taking into account a date and hours/days of work, compensating for weekends, but not holidays:

Properties

  • StartDate, a date
  • Increment, number of hours or days
  • IncrementType, hours (1) or days (2)

Method

  • Workday (Return: Date)

clsFunction_Workday.txt

Please note, this could be improved with an enum or two for the parameters.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License