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

Calendar math

Jason Kwok
Ranch Hand

Joined: Mar 31, 2005
Posts: 126
Hey,

I was wondering if it's possible to subtract one date from another, to determine how many days have passed?

For example:
- Say I have an record of a user account created on February 22, 2006.
- Today is March 14, 2006.

How can I determine how many days old the account is?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
Here are a couple of threads that discuss the topic.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calendar math