Skip to content

ADD_MONTHS

  • date: This parameter indicates the initial date to which the calculation will be applied. It should be a value that is convertible to a DATE type in Oracle SQL.
  • integer: This refers to the number of months to be added to the date provided. It is a numeric value that can be both positive (to add months) and negative (to subtract months). It should be an integer value.
SELECT ADD_MONTHS(TO_DATE('2020/10/27', 'yyyy/mm/dd'), 3) FROM dual;
'27-JAN-21'

The ADD_MONTHS function in Oracle accepts date and integer as arguments and returns the date that is the integer number of months after the given date. In the above example, ADD_MONTHS is used to add 3 months to the date ‘2020/10/27’. The result is ‘27-JAN-21’.