|
DateTime::setDatedate_date_setSets the date DescriptionObject-oriented style
public DateTime DateTime::setDate(int
$year , int $month , int $day )Procedural style DateTime date_date_set(
DateTime $object ,int $year ,int $month ,int $day ) Resets the current date of the DateTime object to a different date. Like DateTimeImmutable::setDate but works with DateTime, and changes the existing object. The procedural version takes the DateTime object as its first argument. Parameters
Return ValuesReturns the modified DateTime object for method chaining. See Also
|