Originally posted by Manfred Leonhardt:
[B]Hi Steve,
I usually use the action command to figure out which is set. You can do something like the code below.
Regards,
Manfred.[/B]
Originally posted by Kris Nelson:
The way I have always done it is to create two java.util.Date objects using the different times. Using each Date object, call the object's getTime() which returns a long value of the number of milliseconds January 1, 1970, 00:00:00 GMT (a.k.a epoch). If you don't care about the dates and just worrying about the times, make the Date objects the same day. Then, simply subtract one long from the other to get the number of milliseconds between them. I think you can figure out how to convert milliseconds into hh:mm:ss etc.