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.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:44AM
    that is a function from the add function lib by Stalker
    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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.