Advantage Concepts
Advantage Expression Engine function that converts a character string formatted as YYYYMMDD to a date value
STOD(<cDate>) -> dDate
<cDate> |
A character string consisting of numbers representing the year, month, and day in the format YYYYMMDD. |
STOD() returns a date value. If <cDate> is not a valid date, STOD() returns an empty date.
STOD() is a character conversion function that converts a character string to a date. STOD() can be used whenever you need a literal date value. Some examples include:
Specifying a literal date string in order to perform date arithmetic
Comparing the result of a date expression to a literal date string
STOD() is the inverse of DTOS() which converts a date value to a character string in the format YYYYMMDD.
Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.
Note Memo, binary, and image fields are not supported in this Advantage Expression Engine function. If memo, binary, or image fields are used with this expression engine function, the Advantage Expression Engine will be unable to evaluate the expression.