Skip to content

Kirby 5.0.0

$date->year()

Gets or sets the year value

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

Parameters

Name Type Default
$year intornull null

Return type

int

Parent class

Kirby\Toolkit\Date