You can use the Date's getTime() function to return the two dates as milliseconds and then divide by 1000 to get seconds. Date dt1 = new Date(); Date dt2 = new Date(); long l1 = dt1.getTime(); long l2 = dt2.getTime(); long dttmDiffInSecs = (l2 - l1) / 1000; Brian
posted 15 years ago
Thanks again for the help.
Water proof donuts! Eat them while reading this tiny ad: