Returns difference in months between date d1 and date d2.
select months_ between('17-MAR-61', '21-APR-62') from dual;
-13.129032
next_day(d,day)
Returns the date that corresponds with the day of the week after date d.
select next_day('01-FEB-04', 'Saturday') from dual;
07-FEB-04
TABLE 2-6.Common Date Functions
Special Formats with the Date Data Type
Date formats are used to change the display format of a date. This is done using the to_char conversion function along with the date and format mask. Table 2-7 shows a sample of the commoner date formats and their output.