[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DTOC()

    DTOC() converts a date value to a character string.

Syntax

    DTOC(<expD>)

Argument

    <expD> is the date value to convert.

Returns

    A character string.

    DTOC() returns a character string representation of a date value based
    on the DATE and CENTURY SETtings.  (See SET DATE for the supported
    formats.)  The default format return value is in the form "mm/dd/yy".
    A null date returns a string of eight or ten spaces depending on
    whether CENTURY is OFF or ON.

Usage

    DTOC() is primarily useful for formatting purposes when you want
    to display the date in the SET DATE format and a character expression
    is required (in a LABEL FORM, for example).

    If you are INDEXing a date as a part of a compound key, use DTOS()
    instead of DTOC().

See Also: SET DATE SET CENTURY CDOW DOW CMONTH MONTH() DAY YEAR CTOD DTOS DATE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson