[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function: StoD()
This function converts a String in the form YYYYMMDD to
a date variable. In contrast to Clipper's CtoD() function,
this function does NOT depend on the SET DATE setting, and
can therefore always be used safely, without having to ask
oneself what the SET DATE setting was.
The function, by the way, is extremely simple when written
in assembly, and executes quite faster than CtoD() as no
conversion is required.
Note that this Function is reverse Operation of Clipper's
DtoS() function.
Syntax: StoD(<cDateString>) --> dVar
Arguments: <cString> is string in the YYYYMMDD format, representing the
date you wish to convert to. Other formats give strange dates.
Returns: The date variable.
Usage: * - Read a date with a RANGE statement..
@ .. GET d RANGE StoD('19800101'),Date()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson