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