File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes 3 Calendar Months calcuation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "3 Calendar Months calcuation" Watch "3 Calendar Months calcuation" New topic

3 Calendar Months calcuation

arul murugan

Joined: Mar 18, 2003
Posts: 5
How do we calculate the 3 calendar month ?. For example ,

If a employee resign from a organisation on 29 th November 2010. Is last working day is calculated on 3 calendar months?.

Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 448

Try using Calendar class.

Java Experience
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

The java.util.Calendar class has useful methods for adding/subtracting days/weeks/month/etc..

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
zameel amjed

Joined: Feb 16, 2011
Posts: 14

You will find all methods in the java.util.calender package here
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46320
You are better off using an up to date API: try here, or google for "joda time".
I agree. Here's the link:
subject: 3 Calendar Months calcuation
It's not a secret anymore!