Grooper 21.00.0082 is available as of 12-12-2023! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.00.0044 is available as of 06-20-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.1.0024 is available as of 09-03-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Need calculate expression for comparing two times
GrooperGuru
Posts: 481 admin
I have a table with three columns: Start Time, End Time, and Total Hours.
Start/End Time are presented in military time on the document... example: "16:20"
Total Hours is represented in hours as a decimal... example: "2.5"
I need a calculate expression to be placed on the Total Hours field that will figure out the difference of the times and convert that difference from minutes to a decimal format, but my .NET skills are total boo boo. I'm sure this is a simple question for the programmers out there.
Start/End Time are presented in military time on the document... example: "16:20"
Total Hours is represented in hours as a decimal... example: "2.5"
I need a calculate expression to be placed on the Total Hours field that will figure out the difference of the times and convert that difference from minutes to a decimal format, but my .NET skills are total boo boo. I'm sure this is a simple question for the programmers out there.
Matt Harrison
Product Manager
mharrison@bisok.com
Product Manager
mharrison@bisok.com
Tagged:
0
Best Answer
-
Brian Posts: 30 ✭✭✭Here you go @GrooperGuru. This should do the trick:
DateDiff(DateInterval.Minute, Start_Time, End_Time) / 60.0
Brian Godwin
Solutions Manager
bgodwin@bisok.com6
Answers
Product Manager
mharrison@bisok.com