Skip to content

Kirby 4.2.0

$date->year()

Gets or sets the year value

$date->year(?int $year = null): int

Parameters

Name Type Default
$year int|null null

Return type

int

Parent class

Kirby\Toolkit\Date