$date1->sub($date2);

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "debussy007" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 11, 2008 3:12 PM
Subject: [fw-general] Get the interval in days of two dates



Hi,

I need to get the interval in days of two dates:

$date = new Zend_Date($advert['expired_date'], 'yyyy-MM-dd HH:mm:ss');
$currentDate = new Zend_Date();

I can then display something like:
Your advert will expire in x days.

Can anyone help me with this ?

Thank you for any kind help !
--
View this message in context: http://www.nabble.com/Get-the-interval-in-days-of-two-dates-tp20440319p20440319.html Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to