• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component_util.php
  • Класс: CComponentUtil
  • Вызов: CComponentUtil::GetDateFormatDefault
static function GetDateFormatDefault($no_year = false)
{
	global $DB;

	return $DB->DateFormatToPHP($no_year ? preg_replace('/[-./]*[Y]{2,4}[-./]*/', '', CSite::GetDateFormat('SHORT')) : CSite::GetDateFormat("SHORT"));
}