Skip to content

Kirby 4.4.1

$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