Topic: Time difference Posted: 23 Jul 2009 at 9:41pm
how do i get the time difference that will output in this format?
00Day 00Hrs 00Min 00Sec
i am not sure if datediff can combine all three. i've tried doing datediff in days,hrs,mins,secs separately then create another formula to combine all four,but apparently the logic is wrong since if timeStart is 10:45AM and timeEnd is 1100AM, it will give me 0Day 1Hr 45Min, which is really wrong. Anyone have any ideas? Your help will be very much appreciated!Thanks in advance!
hey thanks! it worked , but i made a few changes in the formula. i'll include it here for the others.
local numbervar sec:=datediff("s",{ORD_SPL.OS_SPL_RCVDT},{ORD_DTL.OD_VALIDATE_ON}); local numbervar day:=0; local numbervar hr:=0; local numbervar min:=0; local numbervar calc;
in the formula you gave in the previous post , i would just like to know, what does this do totext(day,0"")? i removed the 0"" in the revision i made bec. it will give an error when i execute the formula.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum