Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Date Calculations

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone have a book, website, or something else that could help me learn more about date calculations? Specifically adding and subtracting dates to find out time elapsed. For example, I want to take today's date, take a date six months ago and then calculate and display the number of days that has occurred between the two dates.
Any help would be greatly appreciated.
Thanks
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David,
I'm reluctant to reply to your query because I'm not qualified. But since you've not gotten any bites on your question, I'll offer the very little I know, which is extremely limited.
My books tell of the abstract Calendar class, and of the GregorianCalendar class which is a concrete subclass of Calendar.
Here is a little snippit of code might get you started working with dates. My experience is too limited to give you the solution to your problem, but maybe you can use this as a staring point...it just returns some calendar information:

Maybe someone will finally jump in here who is better qualified to answer your real question.
Good luck!
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic