Date Difference
Date: 11/05/07
(PHP Community) Keywords: no keywords
Hi all. I need to show difference between two dates. I have dates 03-30-1999 and 11-05-2007(todays date). Result must be something like:
It's 7 years, 8 months and 25 days from 01-01-1999. Help me please.
p.s.
When I try to show it by
$years = (mktime1()-mktime2())/2628000
$months = (mktime1()-mktime2())/31536000
$days = (mktime1()-mktime2())/86400
It's not too accurate :-(.
ps
sorry for bad english :-)
Source: http://community.livejournal.com/php/594170.html