Hi
i am very new to delphi and have only been working with it for a few months, i need to calculate the difference between 2 TDateTime Variables regardless of the number of days passed.
Currently im using this:
var
StartTime, EndTime, TimeDiff: TDateTime;
begin
StartTime := (Now);
EndTime := StrToTime(frm_vars.EndTime1.Caption)
TimeDiff := EndTime - StartTime
Label1.Caption := TimeToStr(TimeBetween);
end;
now i understand that this code will only work up until 24:00:00, i need to make this piece of code so that it calculates the time difference over 24 hours in hh:mm:ss format.
could somebody show me how to do this please.