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


      Please help with JavaScript code. Thanks.