Can't calculate days between dates

edited September 2016 in FastReport VCL 5
Using this on the page;
[DateDiff(<StringDS_Baslik."date1">,<StringDS_Baslik."date2">)]

The result is; DateDiff is undefined. Then trying this;

[DateDiff([StringDS_Baslik."date1"],[StringDS_Baslik."date2"])]

And the result is ": Identifier expected"

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:16PM
    "The result is; DateDiff is undefined"
    reason for the message
    DateDiff is not a valid fr function
  • edited 3:16PM
    And I guess that is not an "answer", that is just a comment. I can see that DateDiff is a PascalScript function that can be found in Fast Report documentation; but if it's not available to use in a report page; than what is the appropriate way to calculate difference as days between dates?
  • gordkgordk St.Catherines On. Canada.
    edited 3:16PM
    simply subtract one date field from the older date field
    ie
    [Round(Now-<Sales."Sale Date">)]

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.