Skip to content

Kirby 4.4.1

$date->isBetween()

Checks if the object's datetime is between the given datetimes

$date->isBetween(DateTimeInterface|string|int $min, DateTimeInterface|string|int $max): bool

Parameters

Name Type Default
$min * DateTimeInterface|string|int
$max * DateTimeInterface|string|int

Return type

bool

Parent class

Kirby\Toolkit\Date