Join the Team Forms community

Home
Members
Linda Babaic
L
Linda Babaic
Offline, last seen 2 days ago
Joined December 18, 2024
L
Linda Babaic
E
Solved

Hi,

I am trying to calculate the hours between 2 time fields, please see below.

I have been using the following javascript and it's not calculating - can anyone please provide any assistance, or a different fomula


TypeScript
const startDate = moment(data.startTime)
const endDate = moment(data.endTime)

value = startDate.diff(endDate, 'hour')
7 comments
L
E