Skip to content

Kirby 3.8.4

$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