thierryverstraete
Vendor
Dear user community,
I have 2 database fields that consist of date/time formats. I want to see the time difference expressed in hours when I subtract the "recent" date from the "older" date.
Example 1 --> 08/11/2009 16:00 - 08/11/2009 14:00 should result in 2 hours
Example 2 --> 08/11/2009 16:00 - 08/10/2009 14:00 should result in 26 hours
I do not care about a minute precision...in case the time difference also includes minutes then =< 30 minutes can be rounded down and > 30 minutes can be rounded up.
Example 1 --> time difference of 1 hour and 40 minutes should result in 2 hours
Example 2 --> time difference of 1 hour and 5 minutes should result in 1 hour
Thanks so much!!!
I have 2 database fields that consist of date/time formats. I want to see the time difference expressed in hours when I subtract the "recent" date from the "older" date.
Example 1 --> 08/11/2009 16:00 - 08/11/2009 14:00 should result in 2 hours
Example 2 --> 08/11/2009 16:00 - 08/10/2009 14:00 should result in 26 hours
I do not care about a minute precision...in case the time difference also includes minutes then =< 30 minutes can be rounded down and > 30 minutes can be rounded up.
Example 1 --> time difference of 1 hour and 40 minutes should result in 2 hours
Example 2 --> time difference of 1 hour and 5 minutes should result in 1 hour
Thanks so much!!!