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!

how to calculate calendar months between 2 dates

852772Apr 4 2011 — edited Apr 5 2011
Hi All,

I am trying to calculate no of full calendar months between 2 dates.
For example :

01012011 - 01312011 -> 0
01012011 - 02252011 -> 1 (full month of jan)
01152011 - 02252011 -> 0
01012011 - 03302011 -> 2 (full months of jan and feb)

Appreciate any suggestions.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2011
Added on Apr 4 2011
4 comments
508 views