Count the actual months and days between two dates

select trunc(months_between(date2,date1)) months,
       date2 - add_months(date1,trunc(months_between(date2,date1))) days
  from (select to_date('25-Aug-2013','dd-Mon-yyyy') date1,to_date('23-Oct-2013','dd-Mon-yyyy') date2
          from dual
       )


MONTHS
DAYS
128

Comments

Popular posts from this blog

Steps to Deploy the OFSAA application in WEBLOGIC server:

Client / Server Applications

Steps for OFSAA ALM cash flow generation