DaysBetween

STD.Date.DaysBetween( fromDate, toDate)

fromDateThe first date value in Date_t format.
toDateThe last date value in Date_t format.
Return:DaysBetween returns an INTEGER value of the number of days between the two dates.

The DaysBetween function calculates the number of whole days between two dates.

Example:

IMPORT STD;
StartDate := 19631122;
numDays := STD.Date.DaysBetween(startDate,STD.Date.Today());
      // numDays contains the number of days between the startDate and today's date