This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes days between dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "days between dates" Watch "days between dates" New topic

days between dates

t tea

Joined: Mar 03, 2003
Posts: 10
How can i calcuate the days between two dates?
For example days bewteen 2003-03-02 to 2003-03-29 .
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Search this FAQ for "days between". Disclaimer: I have not used or tested the code here. Use at your own risk.
BTW please review the JavaRanch Naming Policy. If you are using your "real" name, then I apologise in advance.
[ March 22, 2003: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Have you checked out Aspose?
subject: days between dates
It's not a secret anymore!