• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskitem.php
  • Класс: CTaskItem
  • Вызов: CTaskItem::getStartDatePlanGmt
public function getStartDatePlanGmt($getCreatedDateOnNull = false)
{
	try
	{
		$this->ensureDataLoaded();
	}
	catch (TasksException $e)
	{
		return null;
	}

	$date = $this->getStartDateOrCreatedDate($getCreatedDateOnNull);

	if((string) $date == '')
	{
		return null;
	}

	if($this->startDatePlanGmt === null)
	{
		if($date instanceof DateTime)
		{
			$date = $date->toStringGmt();
		}

		$this->startDatePlanGmt = DateTime::createFromUserTimeGmt($date); // string or object allowed here
	}

	return clone $this->startDatePlanGmt;
}