Swat/SwatDateEntry.php
protected function isEndDateValid()
    {
        $this->valid_range_end->setTZById('UTC');
        return SwatDate::compare($this->value, $this->valid_range_end, true) <
            0;
    }
protected function isEndDateValid()
    {
        $this->valid_range_end->setTZById('UTC');
        return SwatDate::compare($this->value, $this->valid_range_end, true) <
            0;
    }
protected function isEndDateValid ( ) { $ this -> valid_range_end -> setTZById ( 'UTC' ) ; return SwatDate :: compare ( $ this -> value , $ this -> valid_range_end , true ) < 0 ; }
Checks if the entered date is valid with respect to the valid end date

@return boolean true if the entered date is before the valid end date
and false if the entered date is on or after the valid
end date.
Checks if the entered date is valid with respect to the valid end date