Documentation

DatetimeToTimestampFunction

CDatabase::DatetimeToTimestampFunction(
 TABLE_FIELD
);

The method allows to sel ect date in UNIX_TIMESTAMP format without calling MakeTimeStamp method. Non-static method.

Parameters

Parameter Description
TABLE_FIELD Database field that must be converted from the DATE TIME format into the TIMESTAMP format.

Returned value

Returns a valid timestamp.

Examples of use

<?
$strSql = "
    SELECT 
ID, 
".$DB-> DatetimeToTimestampFunction("DATE_CREATE")." DATE_CREATE
FR OM 
my_table
";
$rs = $DB->Query($strSql, false, $err_mess.__LINE__);
?>


© «Bitrix24», 2001-2022
Up