public function isBetween(\DateTime $dateTime, \DateTime $start, \DateTime $end) {
        return $dateTime >= $start && $dateTime <= $end;
    }
public function isBetween(\DateTime $dateTime, \DateTime $start, \DateTime $end) {
        return $dateTime >= $start && $dateTime <= $end;
    }
public function isBetween ( \ DateTime $ dateTime , \ DateTime $ start , \ DateTime $ end ) { return $ dateTime >= $ start && $ dateTime <= $ end ; }
Checks if a given date is beween a given start and end date

@param \DateTime $dateTime
@param \DateTime $start
@param \DateTime $end
@return bool
Checks if a given date is beween a given start and end date