How do I calculate the number of days between 2 dates?

z8000783

New member
How can I calculate the number of days between two dates? The function DaysBetween does not seem to be i9n the library. Thanks
 
Last edited by a moderator:
// UserMain
// This script contains special functions related to some of the events triggered by the publication.
// You can then optionally add new commands.

uses Classes;
uses SysUtils;
uses DateUtils;

Produces:

Error in script:
INTERNAL ERRORLibrary ‘DateUtils’ not found
 
Looks like the library is not available by default. We’ll add it to next update.

Try to subtract the two dates: nbdays = DT1 - DT2 for instance
 
Back
Top