Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

To get the last date of year

980493Dec 20 2012 — edited Dec 20 2012
Can anyone tell me how to get last date of the year while passing the First date of year:
My below query is giving the last date of the month

SELECT LAST_DAY(ADD_MONTHS(TO_DATE('01/01/2012','DD/MM/YYYY'),12 -
TO_NUMBER(TO_CHAR(SYSDATE,'mm')))) FROM DUAL

Thnx in Advance
This post has been answered by NSK2KSN on Dec 20 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2013
Added on Dec 20 2012
8 comments
4,674 views