CTOD( ) Function

Converts a character expression to a date expression.

CTOD(cExpression)

Return Values

Date

Parameters

  • 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.

See Also

DATE( ) | SET STRICTDATE | Year 2000 Date Support | RTOD( ) | TTOD( )