You are thinking too complicated...
To get the difference just substract one from the other.
$date = Zend_Date::now();
$diff = $date->sub($birthdate);
$diff->toString();
Greetings
Thomas Weidner, I18N Team Leader
http://www.thomasweidner.com
----- Original Message -----
From: "Joshua Ross" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 25, 2008 5:53 PM
Subject: [fw-general] Use Zend_Date to get the difference between to dates?
I am trying to use Zend_Date to calculate a person's age by determining the
difference between now and the person's birthdate. At first glance I don't
see anything in Zend_Date to do that. I guess it is as simple as getting
the difference between two dates which I thought would be implemented.
Maybe it is and I overlooked it? Has someone else tackled this before or
can maybe tell me that I'm blind today? =]
-Joshua-