Farakh khan wrote:Its fine now.
Thanks & best regards
Line 5 still will return 10 instead of 11, but the adding is fine like this. So you're welcome
Jagdeep Sharma wrote:Can't we use cal.add(Calendar.Month, 6);
Yes we can

Well, if you turn Month into MONTH.