my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41068
    
  43
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
 
Similar Threads
have not received SCJP certification
donations to the ranch
Determing parameters of a service
Help with program
deleting record stores