aspose file tools*
The moose likes Beginning Java and the fly likes Date again... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date again..." Watch "Date again..." New topic
Author

Date again...

Kriss Masters
Greenhorn

Joined: Nov 17, 2003
Posts: 5
Hi i have a problem If i would like to compare two dates and see how many days there are between them, how do i do that? and the result should be an "int".
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624

Take a look at the articles Calculating Java dates and Working in Java time : Learn the basics of calculating elapsed time in Java - they have always been a good reference for me.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You might want to take a look at Thomas Paul's TimeSpan class.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Kriss Masters
Greenhorn

Joined: Nov 17, 2003
Posts: 5
Thanks Mark and Dirk!! Javaworld was a real goldmine
[ December 31, 2003: Message edited by: Kriss Masters ]
[ December 31, 2003: Message edited by: Kriss Masters ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date again...