Документация по D7
История изменений
Модули
Главный модуль в старом ядре
addSecondsToDateTime
castToChar
convertDateField
convertDatetimeField
formatDate
getAliasLength
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getTopSql
prepareMerge
softCastTextToChar
getDateToCharFunction
string public \Bitrix\Main\DB\MysqlCommonSqlHelper::getDateToCharFunction( string $fieldName );
Нестатический метод возвращает sql-функцию для конвертации полей и операторов базы данных в строку.
Результирующая строка будет в формате: YYYY-MM-DD HH:MI:SS.
Параметр $fieldName
не приводится к SQL безопасному виду.
Параметры
Параметр | Описание | Версия |
---|---|---|
$fieldName | Поле или оператор базы данных. |
См. также
Примеры
© «Битрикс», 2001-2025, «1С-Битрикс», 2025
Наверх