LOTUSSCRIPT LANGUAGE


IsDate function
Example

Tests the value of an expression to determine whether it is a date/time value.

Syntax

IsDate ( expr )

Elements

expr


Return value

IsDate returns TRUE (-1) if expr is any of the following:


Otherwise IsDate returns FALSE (0).

Usage

A date/time value stored in a Variant is an 8-byte floating-point value. The integer part represents a serial day counted from Jan 1, 100 AD. Valid dates are represented by integers between -657434 (representing Jan 1, 100 AD) and 2958465 (representing Dec 31, 9999 AD). The fractional part represents the time as a fraction of a day, measured from time 00:00:00 (midnight on the previous day). In this representation of date/time values, day 1 is the date December 31, 1899.

Example
See Also