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 7:04PM
    "The result is; DateDiff is undefined"
    reason for the message
    DateDiff is not a valid fr function
  • edited 7:04PM
    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 7:04PM
    simply subtract one date field from the older date field
    ie
    [Round(Now-<Sales."Sale Date">)]

Leave a Comment