Click or drag to resize

CToDAnsi Function

Convert an ANSI date string to date format.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION CToDAnsi(
	cDate AS STRING
) AS DATE

Parameters

cDate
Type: String
A string in the ANSI form yyyy.mm.dd, where yy, mm, and dd represent year, month, and day respectively. The year, month, and day can be separated by any character other than a number. cDate is always interpreted as an ANSI string and is not dependent on SetDateFormat() or SetDateCountry(). If the century digits are not specified, the century is determined by the rules of SetEpoch().

Return Value

Type: DATE
The date value that corresponds to the numbers specified in cDate. If cDate is not a valid date, CToD() returns a NULL_DATE.
See Also