Difference between revisions of "TTOD()"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Expressions and Type Conversion | Expressions and Type Conversion | ||
Line 38: | Line 35: | ||
[[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]] |
Revision as of 10:16, 2 June 2009
Class
Expressions and Type Conversion
Purpose
Function to convert datetime to date
Syntax
TTOD(<expT>)
See Also
AMPM(), CDOW(), CMONTH(), CTOD(), CTOT(), 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(), STOD(), STR(), TIME(), TIMESTAMP(), TSTRING(), TTOC(), TYPE(), VAL(), VALIDTIME(), VTOD(), WEEK(), YEAR(), SET CENTURY, SET DATE, SET EPOCH, SET HOURS, SET MARK, SET SECONDS, SET VAXTIME
Description
The TTOD() function is the datetime to date conversion function. It converts the <expT> datetime expression specified to a date. The <expT> must be a valid datetime, or the TTOD() function will return an empty date. The date returned will conform to the current SET DATE, SET MARK and SET CENTURY settings. For example, the default settings, SET DATE AMERICAN and SET CENTURY ON, will return a date in the format "MM/DD/YYYY".
Example
set date american set century on mdate = ttod({^2004-03-29 10:15:43 AM}) ? mdate 03/29/2004 ? type("mdate") D
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer