• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dates

 
Giomar Guevara
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get the difference between 2 dates and get it in hours....

How can I do that?
 
David Buzatto
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look in the Joda Time API.

Bye!
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at these JavaWorld articles: Calculating Java dates and Working in Java time : Learn the basics of calculating elapsed time in Java - they do a nice job of explaining Date math in Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic