Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of weeks between two dates

 
mah kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to find number of weeks between two dates?

Regards
Mah
 
Dun Dagda
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
try having a look at the GregorianCalendar class in the java.util package. I has a number of useful methods that will help you do what you want.

DD
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a DateDifference class I pick up along the way.
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
mah kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

Thanks for reply

Regards
mah
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic