aspose file tools*
The moose likes Java in General and the fly likes Can anyone send me the code to calculate the years/months/days between the tow dates. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can anyone send me the code to calculate the years/months/days between the tow dates." Watch "Can anyone send me the code to calculate the years/months/days between the tow dates." New topic
Author

Can anyone send me the code to calculate the years/months/days between the tow dates.

Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Hi

I need the code to calculate the number of years/Number of months/and Number of days between the two dates.

if anyone have then please share it.

Thanks
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
this is not so trivial, taking leap-years into account...

take a look at joda-time.sourceforge.net, they have pretty much everything you need.

hope it helps,
jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can anyone send me the code to calculate the years/months/days between the tow dates.
 
Similar Threads
Dates..
Date Calculations
Days between two dates
Calculate Number of Days Between Two Days
calculate difference in months