Calculation of time difference in formula
Best Answer
-
Hi Nick, I can’t test this myself but for the two lines, could you try changing
fields[‘Startzeit’]
tocolumns[‘Startziet’]
andfields[‘Endezeit’]
tocolumns[‘Endezeit’]
respectively?0
Answers
-
Did you want to put the time difference back into the table in another field? Or did you want to do something like filter on (date2 - date1) greater than 1 day?
0 -
Hey Sean,
I want to insert the time in minutes in an existing field in my data table.
Column 1 Column2 Column3
Time/Date Time/Date Time difference in minutes0 -
I wrote the following script, but the time in minutes will not written in the data table.
var startzeit = new Date(fields['Startzeit']);
var endzeit = new Date (fields['Endezeit']);
var zeit;
zeit = Math.abs(startzeit - endzeit);
zeit = startzeit.getDate() - endzeit.getDate();
var minutes = Math.floor((zeit/1000)/60);
columns['Zeitdifferenz'] = minutes;0