Please enable JavaScript to view this site.

ESL Documentation

DATELIB Function

Return a boolean value that tells whether a given date is valid.

Validdate(YEAR_IV, MONTH_IV, DAY_IV)

YEAR_IV

A integer indicating the full year of the given date; for example, 1992.

MONTH_IV

An integer representing the month of the given date; for example, 2 for February, 3 for March.

DAY_IV

An integer indicating the number for the day of the given date.

Description

Use this function to return a boolean value that tells whether a given date is valid.

If the value of YEAR_IV is less than 100, the function assumes that you want to validate a date starting with the years 19. For example,

Validdate ( 1994, 12, 9 )

is equivalent to:

Validdate ( 94, 12, 9 )

Example

if ( Validdate(1994, 7, 16) ) then

action GetData

end if

See Also

date Special Inquiry Built-in Function