I found it very interesting that these two methods are not working same
SELECT add_months(TO_DATE(‘28-FEB-2007′), 1) FROM dual = 31-MAR-2007
while
java.util.Calendar c=..//28-FEB-2007
c.add(Calendar.MONTH,1); // gives 28-MAR-2007
which one is true ?
for the situation I am dealing java calculation is correct !
java vs Oracle and again winner is java !!!!
Related posts: