Menu Samaritan's Purse

DATE_DATE_SET

Sets the date

SYNTAX

date_date_set ( DateTime $object , int $year , int $month , int $day ) : DateTime

PARAMETERS

object

A DateTime object returned by date_create(). The function modifies this object.

year

Year of the date.

month

Month of the date.

day

Day of the date.

RETURN

Returns the DateTime object for method chaining or FALSE on failure.

EXAMPLES

2001-02-03

PHP