D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertFromDb
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareAssignment
prepareInsert
prepareMerge
prepareUpdate
quote
softCastTextToChar
getDateToCharFunction
string public \Bitrix\Main\DB\SqlHelper::getDateToCharFunction( string $fieldName );
This non-static method returns SQL function for converting database fields and statements into string.
Resulting string will have the YYYY-MM-DD HH:MI:SS format.
$fieldName
parameter is SQL unsafe.
Parameters
Parameter | Description | Version |
---|---|---|
$fieldName | Database field or statement. |
See Also
Examples
© «Bitrix24», 2001-2024
Up