Arg,
So I know I use the Calendar abstract class. And I am betting that I use
the Add method.
Could I see a example of some date arithmetic, e.g. number of days from
today since 01/01/1964.
Must I work out the differences by year, month, day individually, convert to
a common unit of time, add them, then convert to a displayable unit of time?
Struggling...
Paul Lutus - 31 Aug 2004 07:01 GMT
> Arg,
>
[quoted text clipped - 6 lines]
> to a common unit of time, add them, then convert to a displayable unit of
> time?
Practice with the GregorianCalendar class and its many online tutirials.

Signature
Paul Lutus
http://www.arachnoid.com
Jacob - 31 Aug 2004 12:45 GMT
> So I know I use the Calendar abstract class. And I am betting that I use
> the Add method.
[quoted text clipped - 3 lines]
> Must I work out the differences by year, month, day individually, convert to
> a common unit of time, add them, then convert to a displayable unit of time?
Look at
http://geosoft.no/software/day/Day.java.html
It is a simple API for doing date arithmetics
and finding number of days between dates among
others.