getDateToCharFunction
string public \Bitrix\Main\DB\MysqlCommonSqlHelper::getDateToCharFunction( string $fieldName );
This non-static method returns SQL function for converting database fields and expressions into string.
Resulting string will have the format as follows: YYYY-MM-DD HH:MI:SS.
$fieldName
parameter is SQL unsafe.
Parameters
Parameter | Description | Version |
---|---|---|
$fieldName | Database field or expression. |
See Also
Examples
© «Bitrix24», 2001-2024