Date Timestamp Functions Oracle PLSQL Tutorial

SQL>  SELECT LAST_DAY('01-JAN-2005')  FROM dual;
LAST_DAY(
---------
31-JAN-05