Please enable JavaScript to view this site.

ESL Documentation

DATELIB Function

Return the number of days between two dates.

DaySpan(YEAR1_IV, MONTH1_IV, DAY1_IV,

YEAR2_IV, MONTH2_IV, DAY2_IV)

YEAR1_IV

MONTH1_IV

DAY1 _IV

Integers that indicate the earlier date of the range, where: YEAR1 is the full year of the given date (for example, 1991, 1992); MONTH1 is the numerical representation for the month of the given date (for example, 2 for February, 3 for March); and DAY1 is the number for the day of the given date.

YEAR2_IV

MONTH2_IV

DAY2 _IV

The later date of the range.

Description

Use this function to return a positive integer that is the number of days in the range between two dates. If you specify an invalid date, -1 is returned.

Example

copy ( DaySpan(1993, 6, 5, 1994, 8, 3) )

to Num_Of_Days_IV