# 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')

Status

  Ready

Compliance

  This function is Ca-Clipper compliant

Platforms

  All

Files

  Library is rtl

See Also

- SET DATE
- DATE()
- DTOS()