my dog learned polymorphism
The moose likes Beginning Java and the fly likes Calendar math Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 35224
    
    7
Here are a couple of threads that discuss the topic.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Calendar math
 
Similar Threads
Help with program
have not received SCJP certification
deleting record stores
Determing parameters of a service
donations to the ranch