Set the date at which this message was created.

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

        return $this;
    }
1229678
public function setDateCreated($value) : Job
    {
        $this->validateDate('DateCreated', $value);

        if ($this->data['date_created'] !== $value) {
            $this->data['date_created'] = $value;
            $this->setModified('date_created');
        }

        return $this;
    }
1094194
public function init()
    {
        $this->message = Swift_Message::newInstance(
            null,
            null,
            Config::get('content_type'),
            Config::get('charset')
        )
            ->setFrom(Config::get('addr'), Config::get('name'));

        return $this;
    }
900973
public function setPrevNext()
    {
        if ($this->prevEvent && $this->nextEvent) {
            return $this;
        }
        $entries = $this->entries();

        $isPrev = false;
        $isNext = false;
        $firstEvent = false;
        $lastEvent = false;

        foreach ($entries as $event) {
            // Obtain th first event.
            if (!$firstEvent) {
                $firstEvent = $event;
            }
            $lastEvent = $event;
            // Find the current event
            if ($event->id() == $this->currentEvent()['id']) {
                $isNext = true;
                $isPrev = true;

                continue;
            }
            if (!$isPrev) {
                $this->prevEvent = $event;
            }
            // Store the next event
            if ($isNext) {
                $this->nextEvent = $event;

                $isNext = false;
            }
        }

        if ($this->entryCycle()) {
            if (!$this->nextEvent) {
                $this->nextEvent = $firstEvent;
            }

            if (!$this->prevEvent) {
                $this->prevEvent = $lastEvent;
            }
        }

        return $this;
    }
713110
public function setMessage($message)
    {
        if (is_object($message)) {
            $message = (new ConvertObject($message))
                ->toArray();
        }
        $this->message = $message;
        return $this;
    }
198768
public function updated_at_formatted()
    {
        return ucfirst(app(DateFactory::class)->make($this->wrappedObject->updated_at)->format($this->incidentDateFormat()));
    }
1138822
public function setCreated($created)
    {
        $this->created = $created instanceof \DateTime ? $created->format('Y-m-d H:i:s') : $created;

        return $this;
    }
293043
public function prepareMessages() {
		$this[ Argument::MESSAGES ] = $this->doReplacements( $this[ Argument::MESSAGES ] );

		return $this;
	}
881623
public function setCurrentDate()
    {
        $this->defaultValue = Carbon::now()->timezone($this->getTimezone())->format($this->getFormat());

        return $this;
    }
183275
public function setUpdatedOn($updated_on) {
        
        $this -> updated_on = $updated_on !== null ? new \DateTime($updated_on) : null;
        return $this;
    }
385059
public function send()
    {
        if ($this->message === null) {
            throw new Exception(
                'No message set. You have to set one with Message::setMessage()'
                . ' or use Notification::sendMessage(title, msg) instead.'
            );
        }

        $this->notify($this->title, $this->message, realpath($this->icon));

        return $this;
    }
318750
public function onPrePersist() {
    $this->generateSlugs();

    if (!isset($this->created)) {
      $this->created = \Psc\DateTime\DateTime::now();
    }
    $this->updated = \Psc\DateTime\DateTime::now();

    return $this;
  }
727641
protected function setPublicationDate($date)
    {
        self::writeFullTag(
            $date,
            'publication_date',
            false,
            'news:publication_date',
            $this->validator,
            'validatePublicationDate',
            $this->exception,
            'Provided publication date is not a valid value.'
        );

        return $this;
    }
1192208
public function hasTimestamps()
    {
        $this->column('created_at')->dateTime()->nullable();
        $this->column('updated_at')->dateTime()->nullable();

        return $this;
    }
534115
public function withDateAtEndOfMonth() : self
    {
        $instance = $this->withDateAtStartOfMonth();
        
        $instance->date->modify('+1 month');
        $instance->date->modify('-1 day');
        
        return $instance;
    }
739505
public function blank()
    {
        $message = ['%s is {{not|}} empty', $this->value];
        $this->assert((empty($this->value)), $message);

        return $this;
    }
255676
public void setCreatedDate(Date createdDate) {
        _createdDate = createdDate == null ? null : new Date(createdDate.getTime());
    }