View Full Version : datediff
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.
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, 10:55 AM
Oops, should have searched first. Dunno what came over me :rolleyes: ..
Cheers Raf, tis just what I need.
You're welcome :thumbsup:
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.