Set Start Date of event

@param \Cake\I18n\Time|string $startDate of event
@return void
484148
public function setStartDate($startDate): void
    {
        if (is_string($startDate)) {
            $startDate = new Time($startDate);
        }

        $this->startDate = $startDate;
    }
864992
public void setDate(Date date) {
		dateEditor.setDate(date);
		if (getParent() != null) {
			getParent().invalidate();
		}
	}
1214260
public function populateDefaults()
    {
        if (!isset($this->Date) || $this->Date === null) {
            $this->Date = DBDatetime::now()->Format('y-MM-dd');
        }

        if (!isset($this->StartTime) || $this->StartTime === null) {
            $this->StartTime = '09:00:00';
        }

        if (!isset($this->EndTime) || $this->EndTime === null) {
            $this->EndTime = '17:00:00';
        }

        parent::populateDefaults();
    }
210199
public void setStartdate(Object objStartDate) throws PageException {
	if (StringUtil.isEmpty(objStartDate)) return;
	this.startdate = new DateImpl(DateCaster.toDateAdvanced(objStartDate, pageContext.getTimeZone()));
    }
518216
private function determineDateForPrefix($startDate, $endDate)
    {
        // The default date value should look like "*/*/*" after joining
        $dateParts = array_fill_keys(['Y', 'm', 'd'], self::PREFIX_WILDCARD);

        // Narrow down the date by replacing the WILDCARDs with values if they
        // are the same for the start and end date.
        if ($startDate && $endDate) {
            foreach ($dateParts as $key => &$value) {
                $candidateValue = date($key, $startDate);
                if ($candidateValue === date($key, $endDate)) {
                    $value = $candidateValue;
                } else {
                    break;
                }
            }
        }

        return join('/', $dateParts);
    }
676037
public function setStartDay($daysBack)
    {
        if (!is_null($daysBack)) {
            $this->addStatusMessage('Start Date '.date('Y-m-d',
                    mktime(0, 0, 0, date("m"), date("d") - $daysBack, date("Y"))));
        }
        $this->daysBack = $daysBack;
    }
10501
public void setDate(Date date) {
        DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        df.setTimeZone(TimeZone.getTimeZone("GMT"));
        setDate(df.format(date));
    }
1318115
public function setDateBack( $backdate )
	{
		if ( $backdate === $this->getDateBack() ) { return; }

		$this->_checkDateFormat($backdate);

		if ( $backdate !== null ) {
			$backdate = (string) $backdate;
		}

		$this->_values['backdate'] = $backdate;
		$this->setModified();
	}
43605
public static function inBetween( $startDate, $endDate, $date ) {

		$start 	= is_string( $startDate ) ? strtotime( $startDate ) : $startDate->getTimestamp();
		$end 	= is_string( $endDate ) ? strtotime( $endDate ) : $endDate->getTimestamp();
		$test 	= is_string( $date ) ? strtotime( $date ) : $date->getTimestamp();

		// Test in between start and end
		return ( ( $test >= $start ) && ( $test <= $end ) );
	}
592696
function toDate(date, startMonth) {
  date = toDatetime(date, startMonth);
  return date ? new Date(date.getFullYear(), date.getMonth(), date.getDate()) : null;
}
800721
public function setStartEnd($start, $end, $write=true)
    {
        $e = $this;

        $e->StartDateTime = $start;
        $e->setEnd($end, false);
        if ($write) {
            $e->write();
        }
    }
250019
static function startTimestamp($date = '')
    {
        if (!$dateTime = static::parserDateTime($date)) return false;
        return mktime(0, 0, 0, $dateTime[3], $dateTime[4], $dateTime[5]);
    }
352515
public function setStart($start)
    {
        Argument::i()->test(1, 'int');
        
        if ($start < 0) {
            $start = 0;
        }
        
        $this->start = $start;
        
        return $this;
    }
1307403
protected function areWeInRange($startDate, $endDate){
        return (empty($startDate) || date_create() >= $startDate)
        && (empty($endDate) || date_create() <= $endDate);
    }
1075940
public function toDate($date)
	{
		$this->current = (is_string($date) ? new \DateTime($date, self::$utc) : $date);
	}
1332361
public void setStartDate(Date dateStart)
    {
        try   {
            // NOTE: I ignore dateStart and use the date as it appears on the screen
            dateStart = m_productItem.getStartDate(); // Date as it appears on the screen
            Date timeNew = m_productItem.setRemoteStartDate(dateStart);
            if (!timeNew.equals(dateStart))
            {
                Date timeEnd = m_productItem.getRemoteEndDate();    // ((TourLineItem)lineItem).getEndDate();
                String strDescription = m_productItem.getRemoteDescription(); // lineItem.getItem().getDescription();
                String[] rgstrMeals = m_productItem.getMealCache(timeNew, timeEnd);
                
                m_productItem.setCacheData(timeNew, timeEnd, strDescription, rgstrMeals);
                // Usually, you would have to update the data, but removing the icon in the next step will do this.
            }
        } catch (Exception ex)  {
            ex.printStackTrace();
        }
        try   {
            Thread.sleep(2000);     // Sleep for 2 seconds
        } catch (InterruptedException e)    {
        }
        m_productItem.setStatus(m_productItem.getStatus() & ~(1 << 1));
    }
1080409
public function setStartTimeOfDay(\DateTime $startTimeOfDay)
    {
        $startTimeOfDay = clone $startTimeOfDay;
        $startTimeOfDay->setDate(1970, 1, 1); // zero date

        if ($this->getEndTimeOfDay() && $this->getEndTimeOfDay() < $startTimeOfDay) {
            throw new \InvalidArgumentException('End time of day cannot be before start time of day');
        }

        $this->setValue('startTimeOfDay', $startTimeOfDay);
    }