11 Replies Latest reply on May 18, 2017 1:54 PM by gkaiseril

    How to calculate time difference between 2 time fields

    eugzl Level 1

      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:

      StartTimeEndTimeTotal Hours
      9:1510:301:15
      8:3011:152:45
      10:0511:301:25

       

      Please help with JavaScript code. Thanks.