Skip to content

Kirby 3.7.5

$date->isBetween()

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

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

Parameters

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

Return type

bool

Parent class

Kirby\Toolkit\Date