LOTUSSCRIPT LANGUAGE
Converts a numeric value or string value to a date/time value.
Syntax
CDat ( expr )
CVDate is acceptable in place of CDat.
Elements
expr
CDat returns a date/time value.
The data type of the return value is a Variant of DataType 7 (Date/Time).
If the integer part of expr is not in the range -657434 to 2958465, the function raises an error.
CDat(0) returns the date/time value December 30, 1899, 12:00:00 AM, formatted as 12:00:00 AM. CDat(EMPTY) returns the same value.
Usage
CDat converts expr to a date/time value in the LotusScript date/time format.
CDat uses different conversion rules depending on the form of expr:
A date/time value stored in a Variant is an eight-byte floating-point value. The integer part represents a serial day counted from Jan 1, 100 AD. Valid dates are represented by integer numbers in the range -657434, representing Jan 1, 100 AD, to 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.
Language cross-reference
@Time function in formula language
@TextToTime function in formula language
Example See Also