public function dateIsInRange(\DateTime $date) {
    $dateInRange = FALSE;

    $t1 = $this->start_date->getTimeStamp();
    $t2 = $this->end_date->getTimeStamp();

    $t3 = $date->getTimeStamp();

    if (($t3 >= $t1) && ($t3 <= $t2)) {
      $dateInRange = TRUE;
    }

    return $dateInRange;
  }
public function dateIsInRange(\DateTime $date) {
    $dateInRange = FALSE;

    $t1 = $this->start_date->getTimeStamp();
    $t2 = $this->end_date->getTimeStamp();

    $t3 = $date->getTimeStamp();

    if (($t3 >= $t1) && ($t3 <= $t2)) {
      $dateInRange = TRUE;
    }

    return $dateInRange;
  }
public function dateIsInRange ( \ DateTime $ date ) { $ dateInRange = FALSE ; $ t1 = $ this -> start_date -> getTimeStamp ( ) ; $ t2 = $ this -> end_date -> getTimeStamp ( ) ; $ t3 = $ date -> getTimeStamp ( ) ; if ( ( $ t3 >= $ t1 ) && ( $ t3 <= $ t2 ) ) { $ dateInRange = TRUE ; } return $ dateInRange ; }
Checks if date supplied is in range of event

@param \DateTime $date
@return bool
Checks if date supplied is in range of event