Set the creation date of the invoice, if null, set the current date.

@param Carbon $createdAt | null

@return void
778003
private function setCreatedAt(Carbon $createdAt = null)
    {
        if (is_null($createdAt)) {
            $createdAt = Carbon::now();
        }

        $this->createdAt = $createdAt;
    }
1305765
public function getCreatedAt()
    {
        $timestamp = $this->oneOf(['exif:DateTimeOriginal', 'exif:DateTimeDigitized', 'exif:DateTime', 'date:create']);

        try {
            return !empty($timestamp) ? Carbon::parse($timestamp) : null;
        } catch (Exception $e) {
            return;
        }
    }
37007
func (s *SigningJob) SetCreatedAt(v time.Time) *SigningJob {
	s.CreatedAt = &v
	return s
}
954771
public function setEndDate(Carbon $endDate)
    {
        $this->validatePeriod(null, $endDate);

        $this->endDate = $endDate;

        return $this;
    }
1009188
func (s *RelationalDatabaseEvent) SetCreatedAt(v time.Time) *RelationalDatabaseEvent {
	s.CreatedAt = &v
	return s
}
266768
public function setExpiredAtAttribute($value): void
    {
        if (!is_null($value) && !$value instanceof Carbon) {
            $value = Carbon::parse($value);
        }

        $this->attributes['expired_at'] = $value;
    }
352704
func (s *JobTemplate) SetCreatedAt(v time.Time) *JobTemplate {
	s.CreatedAt = &v
	return s
}
32414
public function setCreatedAtDateTime(?DateTime $createdAt)
    {
        $this->created_at = $createdAt === null ? null : $createdAt->format('Y-m-d H:i:s');
        return $this;
    }
132293
public function setDate($t = null)
    {
        if ($t > 0) {
            $this->setText(date('Y-m-d H:i', $t));
        } else {
            $this->setText("");
        }
    }
24156
public function setCurrentFormat($currentFormat) {
        $allowedFormats = $this->getAllowedFormats();
        if(!in_array($currentFormat, $allowedFormats)) {
            throw new InvalidArgumentException('Invalid Date Format: ' . $currentFormat . ', expected: ' . implode(', ', $allowedFormats));
        }

        $allFormats = $this->getPreviousFormats();
        $allFormats[] = $this->getCurrentFormat();
        $this->setPreviousFormats($allFormats);

        $this->currentFormat = $currentFormat;
    }
457477
public function setCreated($v)
    {
        $dt = PropelDateTime::newInstance($v, null, 'DateTime');
        if ($this->created !== null || $dt !== null) {
            $currentDateAsString = ($this->created !== null && $tmpDt = new DateTime($this->created)) ? $tmpDt->format('Y-m-d H:i:s') : null;
            $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
            if ($currentDateAsString !== $newDateAsString) {
                $this->created = $newDateAsString;
                $this->modifiedColumns[] = CustomerPeer::CREATED;
            }
        } // if either are not null


        return $this;
    }
491051
func (s *Task) SetCreatedAt(v time.Time) *Task {
	s.CreatedAt = &v
	return s
}
1109465
public function setDeletedAtDateTime(?DateTime $deletedAt): void
    {
        $this->deleted_at = $deletedAt === null ? null : $deletedAt->format('Y-m-d H:i:s');
    }
402371
protected function setDateProperty(string $name, Carbon $date)
    {
        if (str_is('updated', $name)) {
            $this->googleTasks->setUpdated($date);
        }
    }
30738
public function validateCreatedAt($createdAt)
    {
        if (empty($createdAt)) {
            $this->addError('createdAt', 'Creation date and time cannot be empty');
            return false;
        }

        if (!$createdAt instanceof \DateTime) {
            $this->addError('createdAt', 'The creation date has to be and instance of \DateTime');
            return false;
        }

        return true;
    }
220921
func (s *ServerEvent) SetCreatedAt(v time.Time) *ServerEvent {
	s.CreatedAt = &v
	return s
}
19152
public function setCreationDatetime($creation_datetime) : CNabuDataObject
    {
        if ($creation_datetime === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$creation_datetime")
            );
        }
        $this->setValue('nb_user_creation_datetime', $creation_datetime);
        
        return $this;
    }