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

« Yet another mod_rewrite... || PHP/MySQL : Unknown column... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home