company logo

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

The function subtracts the number of working days passed in iDays from the date value. This is a simplified version of the function, which considers all days from Monday to Friday as working days. Passing a negative value in iDays the number of days will be added ( addWorkingDays() ).

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 )
  • iDays - Set date from days

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