protected function _getValueForDateTimeBase($data = null, $returnTableRow = true, $timeFormat = null) {
		if (empty($timeFormat)) {
			$timeFormat = '%x %X';
		}
		if (empty($data)) {
			$result = $this->ViewExtension->showEmpty($data);
		} else {
			$result = $this->Time->i18nFormat($data, $timeFormat);
		}

		if ($returnTableRow) {
			$result = [$result, ['class' => 'text-center']];
		}

		return $result;
	}
protected function _getValueForDateTimeBase($data = null, $returnTableRow = true, $timeFormat = null) {
		if (empty($timeFormat)) {
			$timeFormat = '%x %X';
		}
		if (empty($data)) {
			$result = $this->ViewExtension->showEmpty($data);
		} else {
			$result = $this->Time->i18nFormat($data, $timeFormat);
		}

		if ($returnTableRow) {
			$result = [$result, ['class' => 'text-center']];
		}

		return $result;
	}
protected function _getValueForDateTimeBase ( $ data = null , $ returnTableRow = true , $ timeFormat = null ) { if ( empty ( $ timeFormat ) ) { $ timeFormat = '%x %X' ; } if ( empty ( $ data ) ) { $ result = $ this -> ViewExtension -> showEmpty ( $ data ) ; } else { $ result = $ this -> Time -> i18nFormat ( $ data , $ timeFormat ) ; } if ( $ returnTableRow ) { $ result = [ $ result , [ 'class' => 'text-center' ] ] ; } return $ result ; }
Return string of formatted date

@param string $data Date for format.
@param bool $returnTableRow If True, return result for row of table.
Otherwise, return as list item.
@param string $timeFormat strftime format string.
@return array|string If $returnTableRow is True, Return array of table cell.
Otherwise, return string.
Return string of formatted date