Skip to content

Kirby 6.0.1

$date->month()

Gets or sets the month value

$date->month(int|null $month = null): int<1, 12>

Parameters

Name Type Default
$month intornull null

Return type

int<1, 12>

Parent class

Kirby\Toolkit\Date