Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GregorianCalendar-Object ... 39 days later?

807569Jul 13 2006 — edited Jul 13 2006
hy!

I have a function, which calculates the eastersunday of a specific year.
i save the date into the gregoriancalendar easter.

now there are some floating holidays adjusting to the eastersunday.
(e.g. 39 days after eastersunday)
how do I calculate the correct date for these holidays?
(when i create a gregoriancalendar that way:
GregorianCalendar afterEaster=new GregorianCalendar(easter.get(easter.YEAR),easter.get(easter.MONTH),easter.get(easter.DATE)+39);
it is wrong, because it is saving 55.April instead of 25.May
how can I solve this problem?
thanks,
lenaz
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2006
Added on Jul 13 2006
2 comments
101 views