Function CtoD() Foundation
Converts a date character string to a date value.
CtoD( <cDate> ) --> dDate
CtoD() returns a date value. When <cDate> is an invalid date, CtoD() returns an empty date.
CtoD() converts a character string to a date value. Date values can only be created using Ctod(), StoD() and Date(). To create an empty date value (such as to prepare for date input), a null string (""), Space(8), or " / / " must be passed as <cDate> to CtoD().
CtoD() is used when literal date values must be converted to a date value in a program. The counterpart function DtoC() reverses the function CtoD(). DtoC() converts date values to character strings in a format dependent on the settings defined with SET DATE and SET CENTURY.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.