Answered
I've been fighting this for a day or so now and I can't seem to find an answer.
I made a time sheet for myself and coWorkers. The problem I have is any time I add a start time of PM and an end time after "AM" I get a negative value. Here in my code and is there any way to fix it?
var StartInterval = 0 if(HasValue(StartTime[0]) and HasValue(Until1[0])) then (Time2Num(Until1[0].formattedValue, "h:MM A") - Time2Num(StartTime[0].formattedValue, "h:MM A"))/(60*60*1000) endif
Abs((Time2Num(Until1[0].formattedValue, "h:MM A") - Time2Num(StartTime[0].formattedValue, "h:MM A"))/(60*60*1000))
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs