Converts a character string to a date expression
CTOD(<cDateString>) --> dDate
<cDateString> A character date in format ‘mm/dd/yy’
<dDate> A date expression
This function converts a date that has been entered as a character expression to a date expression. The character expression will be in the form “MM/DD/YY” (based on the default value in SET DATE) or in the appropriate format specified by the SET DATE TO command. If an improper character string is passed to the function, an empty date value will be returned.
? CToD( "12/21/00" )
Library is rtl
SET DATE, DATE(), DTOS()