Skip to content

Kirby 3.6.6

$date->set()

Overwrites the datetime value with a different one

$date->set(string|int|\DateTimeInterface $datetime, DateTimeZone $timezone = null)

Parameters

Name Type Default Description
$datetime * string|int|DateTimeInterface Datetime string, UNIX timestamp or object
$timezone DateTimeZone null Optional default timezone if $datetime is string

Parent class

Kirby\Toolkit\Date