InspectorJoe
Technical User
We have a short date1 field (00/00/00) and a short time1 field (24:00). We need to compare date1 and time1 to the current date and time when a date2 field is null. The result will be the number of hours from the date1 and time1 to current date and time.
Example:
Date1: 01/01/01 Time1: 17:00
Current Date: 01/03/01 Current Time: 8:05
Date2: Null
Results: 39 hrs and 5 minutes or 39.08 hrs
- or -
Date1: 01/01/01 Time1: 17:00
Current Date: 01/01/01 Current Time: 19:15
Date2: Null
Results: 2 hrs and 15 minutes or 2.25 hrs
I know what I want, I just don't know how to get there.
Joe.Aleshire@dys.state.oh.us
Example:
Date1: 01/01/01 Time1: 17:00
Current Date: 01/03/01 Current Time: 8:05
Date2: Null
Results: 39 hrs and 5 minutes or 39.08 hrs
- or -
Date1: 01/01/01 Time1: 17:00
Current Date: 01/01/01 Current Time: 19:15
Date2: Null
Results: 2 hrs and 15 minutes or 2.25 hrs
I know what I want, I just don't know how to get there.
Joe.Aleshire@dys.state.oh.us