File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes how to get the months Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "how to get the months" Watch "how to get the months" New topic

how to get the months

Akshatha Nayak
Ranch Hand

Joined: Jul 15, 2004
Posts: 53
Hi Guys,
Does anybody know how to get the number of months using 2 different date fields ?
All i need to find out is if the difference between entered date like some employed date and currentdate ( like todays date ) is more than 2 yrs .

Only those who will risk going too far, Can possibly find out how far one can go! <br />happiness is journey and not destination<br /> <br />A Nayak<br />----------------------------------<br />SCJP 1.4<br />SCWCD 1.3<br />SCBCD 1.3
Srinu Nanduri
Ranch Hand

Joined: Mar 20, 2006
Posts: 42

Try this link


I agree. Here's the link:
subject: how to get the months
It's not a secret anymore!