Hello, $gd and $rd are variables received from db in format 2010-12-24 (year-month-day). $going = new Zend_Date($gd, 'YYYY-MM-dd'); $return = new Zend_Date($rd, 'YYYY-MM-dd');
As an extra note to my question: When I changed $diff = $return->getDate()->subDate($going->getDate())->toArray(); to $diff = $return->subDate($going)->toArray(); it started to give me the same result (the result which I was expecting). On Fri, Oct 15, 2010 at 5:01 AM, David Muir <davidkmuir+z...@gmail.com> wrote: > > How did you create the dates? > > David > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/Date-Subtractions-Differences-tp2996040p2996412.html > Sent from the Zend Framework mailing list archive at Nabble.com. >