Function CtoD() Foundation
Converts a date character string to a date value.
CtoD( <cDate>[, <cDateFormat>] ) --> 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(). Note that the exact format of the character string and the delimiters contained in the string depends on the date format selected via the <cDateFormat> parameter.
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().
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.