Calculating difference between two days

From: Date: Wed, 14 Jun 2006 16:45:29 +0000
Subject: Calculating difference between two days
Groups: php.general 
Request: Send a blank email to php-general+get-237983@lists.php.net to get a copy of this message
Hi, I need to calculate no. of days between two dates, actually between date stored in DB and today's date. Does anybody has an example I can use? I found an example on http://www.developertutorials.com/tutorials/php/calculating-difference-between-dates-php-051018/page1.html but function gregoriantojd() doesn't work for me Fatal error: Call to undefined function: gregoriantojd() Found this: Please read the manual: http://www.php.net/manual/en/ref.calendar.php You need to either compile the extension in or load it. Since you provided no details about your situation at all, I cannot help you further. on http://bugs.php.net/bug.php?id=10151&edit=1 Thanks on any help. -afan

« previous php.general (#237983) next »