Oracle® OLAP DML Reference 10g Release 1 (10.1) Part Number B10339-02 |
|
|
View PDF |
The ADD_MONTHS function returns the date that is n months after the specified date.
Return Value
DATETIME
Syntax
ADD_MONTHS(start_datetime, n)
Arguments
A DATETIME expression that identifies the starting date.
An INTEGER that identifies the number of months to be added to start_datetime.
Notes
When the day component of start_datetime is the last day of the month or when the returned month has fewer days, then the returned day component is the last day of the month. Otherwise, the day component of the returned date is the same as the day component of start_datetime. See Example 6-14, "End-of-Month Calculation".
Examples