Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ADD_MONTHS BUG?
Normally I I thought oracle returns the 30.12.98 using the following
statement,
select to_Char(add_months(TO_DATE('301198','DDMMYY'),1) ,'DD.MM.YY DAY')
from dual
BUT oracle returns 31.12.98. That happens with every Last day of a month with less than 31 days. Incredible is that function in February. Than you receive the 31. March and not the 28 or 29 of march.
If someone use this function for financial calculation he would get unexpected results.
Is that a known bug?
Kind regards
Nicolas
Received on Mon Nov 24 1997 - 00:00:00 CST
![]() |
![]() |