Originally posted by J Fairbairn:
To compute the difference between two dates, I usually convert the dates to java.util.Date objects, call their getTime() methods, and subtract.
You could just use the Calendar's getTimeInMillis() method. That method returns a long.