• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/pgsql/database.php
  • Класс: CDatabase
  • Вызов: CDatabase::DateFormatToDB
public function DateFormatToDB($format, $field = false)
{
	$this->DoConnect();
	if ($field === false)
	{
		$field = "#FIELD#";
	}
	return "to_char(".$field.", '".$this->connection->getSqlHelper()->formatDate($format)."')";
}