The next_month() function determines the first day of the next month after the specified date.
The next_month() function has the following syntax:
date = next_month(date input);
The input value specifies a date.
select next_month('1996-2-29');
NEXT_MONTH
------------
1996-03-01
(1 row)