public function same_day() {
    if (!$this->values || ($this->start && !$this->end)) {
      return true;
    }

    if ($this->start->format('Y-m-d') == $this->end->format('Y-m-d')) {
      return true;
    }
    return false;
  }
public function same_day() {
    if (!$this->values || ($this->start && !$this->end)) {
      return true;
    }

    if ($this->start->format('Y-m-d') == $this->end->format('Y-m-d')) {
      return true;
    }
    return false;
  }
public function same_day ( ) { if ( ! $ this -> values || ( $ this -> start && ! $ this -> end ) ) { return true ; } if ( $ this -> start -> format ( 'Y-m-d' ) == $ this -> end -> format ( 'Y-m-d' ) ) { return true ; } return false ; }
True if start and end are on the same day.
True if start and end are on the same day .