Difference between revisions of "CTOT()"
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to convert character to datetime | Function to convert character to datetime | ||
Line 29: | Line 25: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Expressions and Type Conversion]] | ||
+ | [[Category:Expressions and Type Conversion Functions]] | ||
+ | [[Category:Date and Time Data]] | ||
+ | [[Category:Date and Time Data Functions]] |
Latest revision as of 16:38, 27 November 2009
Purpose
Function to convert character to datetime
Syntax
CTOT(<expC>)
See Also
AMPM(), CDOW(), CMONTH(), CTOD(), DATE(), DATETIME(), DAY(), DAYS(), DMY(), DOW(), DTOC(), DTOM(), DTOS(), DTOV(), ELAPTIME(), EMPTY(), EPOCH(), GOMONTH(), HOUR(), HOURS(), LTOS(), MDY(), MINUTE(), MINUTES(), MONTH(), MTOD(), MTOS(), QUARTER(), SEC(), SECONDS(), SECS(), SET CENTURY, SET DATE, SET EPOCH, SET HOURS, SET MARK, SET SECONDS, SET VAXTIME, STOD(), STR(), TIME(), TIMESTAMP(), TSTRING(), TTOC(), TTOD(), TYPE(), VAL(), VALIDTIME(), VTOD(), WEEK(), YEAR()
Description
The CTOT() function is the character to datetime conversion function. It converts the character expression specified to a datetime variable. The character expression must be correctly formatted based on the current SET DATE, SET MARK, SET SECONDS and SET CENTURY settings. For example, the default settings, SET DATE AMERICAN, SET SECONDS ON and SET CENTURY ON, require a datetime in the format "MM/DD/YYYY HH:MM:SS AM/PM". If <expC> is an invalid datetime format the CTOT() function will return an empty datetime.
Example
mdate = ctot("01/21/2004 01:44:44 PM") ? mdate 01/21/2004 01:44:44 PM ? type("mdate") T
Products
Recital Server, Recital