PHP Manual
Function Reference
Date and Time Related Extensions
Date/Time
DateTimeImmutable
DateTimeImmutable::add
DateTimeImmutable::__construct
DateTimeImmutable::createFromFormat
DateTimeImmutable::getLastErrors
DateTimeImmutable::modify
DateTimeImmutable::__set_state
DateTimeImmutable::setDate
DateTimeImmutable::setISODate
DateTimeImmutable::setTime
DateTimeImmutable::setTimestamp
DateTimeImmutable::setTimezone
DateTimeImmutable::sub
DateTimeImmutable::__set_state
DateTimeImmutable::setISODate
DateTimeImmutable
PHP Manual
DateTimeImmutable::setDate
Sets the date
Description
public
DateTimeImmutable
DateTimeImmutable::setDate
(
int
$year
,
int
$month
,
int
$day
)
Like
DateTime::setDate
but works with
DateTimeImmutable
.