×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




   Create two Date objects.
   Set each to one of the dates using the
Calendar.setXXXX() methods.
   Extract the times via the .getTime() method
(returning the number of milliseconds since Jan 1,1970
I think).
   Divide that by 24 * 60 * 60 * 1000 (hours, minutes,
seconds, and milliseconds in a day).

Hope this helps,
Don Whittaker


--- Robert Upshall <rupshall@psasoft.com> wrote:
> I have 2 dates, 8-digit BigDecimal, CCYYMMDD format,
> is there an easy way to
> use the java Date classes to calculate the # of days
> between the dates?
>
> Robert Upshall
> Professional Software of Amarillo
> (806) 358-8928
> rupshall@psasoft.com
>
>
> _______________________________________________
> This is the Java Programming on and around the
> iSeries / AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
>


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.