Anyone got some Java code that will do a simple "days between two dates" calculation? There are no times involved - just simple dates.

I have Google'd for a solution but they all seem to involve mucking about with multiplication etc. Most of them also seem to have at least one person pointing out that there will be problems with DST, or rounding, or ...

Surely in this "all powerful" language there is an easy solution for such a simple business problem? In RPG it is a simple %Diff - do I really need 20+ lines of Java to achieve the same thing?

Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.