CTOD()
Converts a character string to a date expression
Syntax
CTOD(<cDateString>) --> dDate
Arguments
<cDateString> A character date in format ‘mm/dd/yy’
Returns
<dDate> A date expression
Description
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.
Examples
? CToD( "12/21/00" )
Compliance
Clipper
Platforms
All
Files
Library is rtl
Seealso
SET DATE, DATE(), DTOS()
Pingback: Harbour All Functions – C | Viva Clipper !
Pingback: Harbour Date & Time Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !