View Full Version : datediff

10-23-2004, 07: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.

10-23-2004, 09: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


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

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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum