• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/update_class.php
  • Класс: CUpdateSystem
  • Вызов: CUpdateSystem::GetDateFormat
static function GetDateFormat($strDBFormat = false)
{
	if ($strDBFormat===false)
		$strDBFormat = FORMAT_DATE;

	$strDBFormat = str_replace("YYYY", "Y", $strDBFormat);	// 1999
	$strDBFormat = str_replace("MM", "m", $strDBFormat);	// 01 - 12
	$strDBFormat = str_replace("DD", "d", $strDBFormat);	// 01 - 31
	$strDBFormat = str_replace("HH", "H", $strDBFormat);	// 00 - 24
	$strDBFormat = str_replace("MI", "i", $strDBFormat);	// 00 - 59
	return str_replace("SS", "s", $strDBFormat);	// 00 - 59
}