posted 20 years ago
Hi,
You can only compare two dates at a time, so you must compare the first two dates to determine which is greatest, then compare this greater date with the third date, again to find the greater value. Finally, repeat this process with the fourth date, to find the greatest value overall.
You can use the getTime() function of the java.util.Date class to obtain "the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object" as a long value, this will allow you to compare the dates easily.
Hope this helps,
Dave
[ July 07, 2003: Message edited by: Dave Turner ]