CTOD( ) Function

See Also

Converts a character expression to a date expression.

Syntax

CTOD(cExpression)

Returns

Date

Arguments

cExpression

Specifies a character expression for which CTOD( ) returns a Date-type value.

Remarks

Note that CTOD( ) can create ambiguous Date values, and generates a compilation error when SET STRICTDATE is set to 2. Use DATE( ) instead to create nonambiguous Date values. For more information about ambiguous dates, see Year 2000 Date Support in Chapter 33, Programming Improvements, in the Programmer’s Guide.