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
|
---|---|
1 | 28 |
Comments
Post a Comment