0 Replies Latest reply on May 13, 2014 2:32 PM by davehtc

    How do I subtract time to get total hours from form data in the format HH:MM? I need to create a dynamic time sheet.

    davehtc

      Hello community!

      How do I add and subtract time from forms inputted by users? I'd like to create a time sheet where total hours are calculated. I have a form setup where "time in" is inputted as HH:MM and "time out" as HH:MM. Time Out needs to be subtracted from Time In to get total hours worked. This needs to have AM and PM as well. I was thinking convert it to military time? Don't know how to do this in JS, any links or advice is appreciated. I believe the ScanD function will be employed?