D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertDateField
convertDatetimeField
convertStringField
forSql
formatDate
getAliasLength
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareMerge
softCastTextToChar
getDateToCharFunction
string public \Bitrix\Main\DB\MssqlSqlHelper::getDateToCharFunction( string $fieldName );
This method returns SQL function to convert database fields and statements into the string.
Resulting string format: YYYY-MM-DD HH:MI:SS.
Parameter $fieldName
is SQL unsafe.
Parameters
Parameter | Description | Version |
---|---|---|
$fieldName | Database field of expression. |
See Also
Examples
© «Bitrix24», 2001-2024
Up