Menu Samaritan's Purse

DATE_ISODATE_SET

Sets the ISO date

SYNTAX

date_isodate_set ( DateTime $object , int $year , int $week [, int $day = 1 ] ) : DateTime

PARAMETERS

object

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

year

Year of the date.

week

Week of the date.

day

Offset from the first day of the week.

RETURN

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

EXAMPLES

OBJECT YEAR WEEK

2001-01-08

DAY

2001-01-10

RETURN

DateTime::__set_state(array(
'date' => '2001-01-10 23:12:17.232763',
'timezone_type' => 3,
'timezone' => 'UTC',
))

PHP