PreviousNextIndex

ADD-INTERVAL function

Adds a time interval to, or subtracts a time interval from, a DATE, DATETIME, or DATETIME-TZ value, and returns the new value.

Syntax

ADD-INTERVAL (datetime, interval-amount, interval-unit) 

datetime
interval-amount
interval-unit
Note

To add or subtract months or years, this function converts the date to Gregorian before adding or subtracting the year or month value. If the result is an invalid date, the function decrements the day part of the date until a valid date is obtained. For example:

See also

+ Date addition operator, – Date subtraction operator, + Datetime addition operator, – Datetime subtraction operator, DATE function, DATETIME function, DATETIME-TZ function, INTERVAL function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex