DTOC()


Convert a date value to a character string.

Syntax

DTOC(<dDate>) --> cDate

Arguments

<dDate> --> is the date value to convert.

Returns

DTOC() returns a character string representing the date. The date format is dd/mm/yy.

Description

DTOC() is a date conversion function used for formatting purposes when you want to display the date. If you are sorting date values use DTOS() instead of DTOC(). This will ensure that dates will be ordered correctly.

Examples

dDate := CTOD('01/01/01')

'Today is ' + DTOC(dDate)

* Returns: Today is 01/01/01

____________________________

Related Topics:

Business Function List



CAPITAL VISUAL BUILDER