company logo

Date :: subtractDays - Subtract days from date value

The function subtracts a number of days from the current date and returns the new date value.

Return value:  Date ( odaba::Date & )

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

Implementation details

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

The number of days passed in iDays is subtracted from the current date value. Month and year may change when number of days crosses month or year boundary.

  • 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.