public function getDateScope() { static $return = array(); if (empty($return)) { $scope = $this->getTimeScope(); $return = DateTimeUtil::getFormatDate($scope["start"], $scope["end"], "Y-m-d"); } return $return; }
public function getFormatDate($start, $end) { $type = $this->getType(); if ($type == "week") { return $this->formateDateByWeek($start, $end); } elseif ($type == "month") { return $this->formateDateByMoon($start, $end); } else { return DateTimeUtil::getFormatDate($start, $end, "Y-m-d"); } }