$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 |
---|---|---|
$minrequired | DateTimeInterface orstring orint |
no default value |
$maxrequired | DateTimeInterface orstring orint |
no default value |
Return type
bool
This method modifies the existing $date
object it is applied to and returns it again.