company logo

Date :: addDays - Add days to date value

The function adds a number of days to 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  :: addDays ( int32 iDays )

The number of days passed in iDays is added to 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.