public static function isBetween($value, $minDate, $maxDate, $inclusive = false)
    {
        if (false === $inclusive) {
            return (self::isAfter($value, $minDate, false) && self::isBefore($value, $maxDate, false));
        }

        return (self::isAfter($value, $minDate, true) && self::isBefore($value, $maxDate, true));
    }
public static function isBetween($value, $minDate, $maxDate, $inclusive = false)
    {
        if (false === $inclusive) {
            return (self::isAfter($value, $minDate, false) && self::isBefore($value, $maxDate, false));
        }

        return (self::isAfter($value, $minDate, true) && self::isBefore($value, $maxDate, true));
    }
public static function isBetween ( $ value , $ minDate , $ maxDate , $ inclusive = false ) { if ( false === $ inclusive ) { return ( self :: isAfter ( $ value , $ minDate , false ) && self :: isBefore ( $ value , $ maxDate , false ) ) ; } return ( self :: isAfter ( $ value , $ minDate , true ) && self :: isBefore ( $ value , $ maxDate , true ) ) ; }
Checks if a given date is in a given range of dates.

@param string|\DateTime $value
@param bool             $inclusive
@param string $minDate
@param string $maxDate

@return bool
Checks if a given date is in a given range of dates .