/** * get count of days between dates, ignores time values * * @param Zend_Date $date * @return int */ public function getDaysBetween(Zend_Date $date) { // 86400 seconds/day = 24 hours/day * 60 minutes/hour * 60 seconds/minute // rounding takes care of time changes return round($date->getDayStart()->sub($this->getDayStart())->toValue() / 8640); }