<p>
Add the given Date to the list of excluded days. Only the month, day and
year of the returned dates are significant.
</p>

@param \DateTime $excludedDate
487343
public function addExcludedDate(\DateTime $excludedDate)
    {
        $date = $this->getStartOfDayDateTime($excludedDate->format('U'));

        $dates = $this->getValue('excludedDates');
        $dates[$date->format('U')] = true;

        $this->setValue('excludedDates', $dates);
    }
456659
public function getExcludedDates()
    {
        $dates = [];
        foreach ($this->getValue('excludedDates') as $date => $v) {
            $d = \DateTime::createFromFormat('U', $date);

            if ($tz = $this->getTimeZone()) {
                $d->setTimezone($tz);
            }

            $dates[] = $d;
        }

        return $dates;
    }
1066236
public function setDaysExcluded(array $weekDays)
    {
        foreach ($weekDays as $wday) {
            DateBuilder::validateDayOfWeek($wday);
        }

        $this->setValue('excludeDays', $weekDays);
    }
833682
public function setDateFrom($date = null)
    {
        $date = $this->resolveCarbon($date);

        return $this->setDate($date->year, $date->month, $date->day);
    }
424675
public function setDate(DateTimeInterface $dateTime)
    {
        if (!$this->setHeaderFieldModel('Date', $dateTime)) {
            $this->getHeaders()->addDateHeader('Date', $dateTime);
        }

        return $this;
    }
1083260
@SuppressWarnings("unchecked")
    public T date( Date... date ) {
        if (checkIfNull(date)) {
            return (T) this;
        }
        date = ensureDateNotTimestamp(date);
        addObjectParameter(DATE_LIST, "date", date);
        return (T) this;
    }
539065
public function setDateTime(\DateTimeInterface $dateTime)
    {
        if ($dateTime instanceof \DateTime) {
            $immutable = new \DateTimeImmutable('@'.$dateTime->getTimestamp());
            $dateTime = $immutable->setTimezone($dateTime->getTimezone());
        }
        $this->dateTime = $dateTime;
    }
472815
public function filterByApprovedAfter(\DateTime $date)
    {
        $this->query->andWhere(
             'cv.cvDateApproved >= ' . $this->query->createNamedParameter($date->format('Y-m-d H:i-s'))
        );
    }
1008848
public function removeExcludeDay($day) {
        $key = array_search($day, $this->excludeDaysFlags);
        if (!($key === False)) {
            unset($this->excludeDaysFlags[$key]);
        }
    }
558047
public function setHiddenAfterDateTime(\DateTimeInterface $dateTime = null)
    {
        if ($this->hiddenAfterDateTime != $dateTime) {
            $this->hiddenAfterDateTime = $dateTime;
            $this->addOrUpdate();
        }
    }
367283
public function setHiddenBeforeDateTime(\DateTimeInterface $dateTime = null)
    {
        if ($this->hiddenBeforeDateTime != $dateTime) {
            $this->hiddenBeforeDateTime = $dateTime;
            $this->addOrUpdate();
        }
    }
58560
public final function addDays( int $days = 1 )
      : DateTime
   {

      return $this->move( new \DateInterval( 'P' . \abs( $days ) . 'D' ), $days < 0 );

   }
218728
public function withLastModified(DateTime $date)
    {
        $this->withoutHeader('Last-Modified');
        $this->withHeader('Last-Modified', $date->format('D, d M Y H:i:s') . ' GMT');

        return $this;
    }
268729
public function setDateStart( $date )
	{
		if ( $date === $this->getDateStart() ) { return; }

		$this->_checkDateFormat($date);

		$this->_values['start'] = ( $date !== null ? (string) $date : null );
		$this->setModified();
	}
170882
public function setEndDate($date)
    {
        $date = AnDomainAttributeDate::getInstance()->setDate($date);
        $this->set('endDate', $date);

        return $this;
    }
1269041
public function setExpiresOn($date)
    {
        $date = AnDomainAttributeDate::getInstance()->setDate($date);
        $this->set('expiresOn', $date);
    }
12595
public function dontSeeDayInMonth($date, $day) {
        \PHPUnit_Framework_Assert::assertNotEquals($day, $this->_ParseDate($date)->day);
    }