company logo

Date :: subtractWorkingDays - Subtract number of working days from date value

This is a simplified version of the function, which considers all days from Monday to Friday as working days but not taking into account holidays.

In order to obtain the nearest working day (before), one may pass 0 in iDays. When the day in the date value is a working day already, it remains unchanged in this case.

Return value:  Date ( odaba::Date & )

The date contains day, month and year, but not the time.

Implementation details

odaba::Date & Date  :: subtractWorkingDays ( int32 iDays )

The function subtracts the number of working days passed in iDays from the date value. Passing a negative value in iDays the number of days will be added (addWorkingDays()).

  • iDays - Set date from days

    The function calculates the date from the number of days passed in iDayNum. The value must be greater than 0.