I have the below line of codes
$day1 = new Zend_Date(\'2010-03-01\', \'YYYY-mm-dd\'); $day2 = new Zend_Date(\'2010-03-05\', \'YYYY-mm-dd\'); $dateDiff = $da
I believe the problem is in your part string. Try YYYY-MM-dd instead.
$day1 = new Zend_Date('2010-02-28', 'YYYY-MM-dd'); $day2 = new Zend_Date('2010-03-01', 'YYYY-MM-dd'); echo $day2->sub($day1)->toString(Zend_Date::DAY);