Question
How to calculate time difference between 2 time fields
I have a form with a StartTime and EndTime field formatted like HH:MM , and a TotalHours field formatted like (Number, 2 decimal places, separator style 1234.56). In that field I would like to display result of time calculation.
I'm expecting to get such result:
| StartTime | EndTime | Total Hours |
|---|---|---|
| 9:15 | 10:30 | 1:15 |
| 8:30 | 11:15 | 2:45 |
| 10:05 | 11:30 | 1:25 |
Please help with JavaScript code. Thanks.
