• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/db.php
  • Класс: BitrixTasksUtilDb
  • Вызов: Db::charToDateFunction
static function charToDateFunction($strValue, $strType = "FULL", $lang = false): string
{
	global $DB;

	$sql = $DB->CharToDateFunction($strValue, $strType, $lang);

	if ($sql === "''")
	{
		$sql = '0';
	}

	return $sql;
}