CommunicationStatistics::getDeadline

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CommunicationStatistics
  4. getDeadline
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/communicationstatistics.php
  • Класс: Bitrix\Crm\Activity\CommunicationStatistics
  • Вызов: CommunicationStatistics::getDeadline
static function getDeadline($activity)
{
	$deadline = isset($activity['DEADLINE']) ? $activity['DEADLINE'] : '';
	if ($deadline)
	{
		$deadline = \Bitrix\Main\Type\DateTime::createFromUserTime($deadline);
		$deadline->setTime(0, 0, 0);
	}
	return $deadline;
}

Добавить комментарий