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
number of days between date of registration (later) and date of purchase (before)
// $datePurchase instanceof Zend_Date // $dateRegistration instanceof Zend_Date if($datePurchase && $dateRegistration) { $diff = $dateRegistration->sub($datePurchase)->toValue(); $days = ceil($diff/60/60/24)+1; }