CDate Function [Runtime] /text/sbasic/shared/03100300.xhp Sun Microsystems, Inc. converted from old format - fpe
CDate function CDate Function [Runtime] Converts any string or numeric expression to a date value.
Syntax: CDate (Expression) Return value: Date Parameters: Expression: Any string or numeric expression that you want to convert. When you convert a string expression, the date and time must be entered in the format MM.DD.YYYY HH.MM.SS, as defined by the DateValue and TimeValue function conventions. In numeric expressions, values to the left of the decimal represent the date, beginning from December 31, 1899. Values to the right of the decimal represent the time. Example: sub ExampleCDate MsgBox cDate(1000.25) REM 09.26.1902 06:00:00 MsgBox cDate(1001.26) REM 09.27.1902 06:14:24 end sub