So I simplified my script to:if (HasValue(startsamplingtime) and
HasValue(endsamplingtime)) thencalcsoaktime =
Abs(Time2Num(endsamplingtime.formattedValue, "HH:MM:SS") -
Time2Num(startsamplingtime.formattedValue, "HH:MM:SS"))/(60*60*1000);
else calcsoaktime = 24 - Abs(Time2Num(endsamplingtime.formattedValue,
"HH:MM:SS") - Time2Num(startsamplingtime.formattedValue,
"HH:MM:SS"))/(60*60*1000);endifThe only problem is that I want the
calcsoaktime to be formatted in HH:MM:SS. I have made the display ...