Simple demo for LAST_DAY function : LAST_DAY « Date Timezone « Oracle PL / SQL






Simple demo for LAST_DAY function

 

SQL>
SQL>
SQL> --The LAST_DAY function returns the last day of any month
SQL>
SQL> SELECT TO_CHAR(LAST_DAY('23SEP2006')) FROM dual;

TO_CHAR(L
---------
30-SEP-06

SQL>
SQL>
           
         
  








Related examples in the same category

1.LAST_DAY: Get the last day of each month
2.Finding the last day of the month starting summer
3.Calculating the Number of Days of Summer in June
4.select last_day( date'2000-02-01' ) "Leap Yr?"
5.select last_day( sysdate ) "Last day of this month"
6.LAST_DAY(hire_date)+1
7.LAST_DAY(x): get the date of the last day of the month that contains x.