aspose file tools*
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
Author

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 .
Thankx


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
Hi

Try this link

http://bobcat.webappcabaret.net/javachina/jc/share/DiffDate.htm

Regads,
Srinu


SCJP, SCWCD
 
 
subject: how to get the months