• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/comp_formatprops.php
  • Класс: CIBlockFormatProperties
  • Вызов: CIBlockFormatProperties::DateFormat
static function DateFormat($format, $timestamp)
{
	global $DB;

	switch ($format)
	{
		case 'SHORT':
			return FormatDate($DB->DateFormatToPHP(FORMAT_DATE), $timestamp);
		case 'FULL':
			return FormatDate($DB->DateFormatToPHP(FORMAT_DATETIME), $timestamp);
		default:
			return FormatDate($format, $timestamp);
	}
}