...

View Full Version : datediff



Mhtml
10-23-2004, 08:44 AM
Is there a datediff function for PHP? I couldn't locate anything similar in the documentation. Or is my best bet to write something that'll use timestamps to do it? I gather that's how datediff would work anyway.

raf
10-23-2004, 10:43 AM
not sure what you exactly need, but there have been quite some threads here with quoted code from php.net , to compute datediffs and echo it out in years/months/days/hourrs etc. Like this one

http://www.codingforums.com/showpost.php?p=148700&postcount=4

Mhtml
10-23-2004, 10:55 AM
Oops, should have searched first. Dunno what came over me :rolleyes: ..
Cheers Raf, tis just what I need.

raf
10-23-2004, 03:31 PM
You're welcome :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum