DateDiff
Can anyone help me with the function DateDiff??
I can't get it to work and I can't find any answers on the net 'bout it.
I can't get it to work and I can't find any answers on the net 'bout it.
Comments
i have never gotten it to work either.
you can always just subtract oldnate from newdate
or you can write your own function ie
function DaysBetween(Olddate: Tdatetime; NewDate: Tdatetime): integer;
begin
Result := Trunc(Newdate) - Trunc(Olddate);
if Result < 0 then Result := 0;
end;
and add it to the functions or create a function lib