Difference between two dates

Hello Experts,


I want to get the difference (say age of a person) in years, month and
days from the current date to a given date.
how can i achieve this, my server support PHP 5.20, where date interval
function (date_diff) is not available, is
there is any other way, rather than calculating in the hard way (i mean,
keeping all the leap years and days in mind ).

please suggest.

prateek.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
katiyar76 [ Do, 27 Januar 2011 15:42 ] [ ID #2053945 ]

Re: Difference between two dates

--001485f85a1a852f9d049ad53d5a
Content-Type: text/plain; charset=UTF-8

On Thu, Jan 27, 2011 at 3:42 PM, Katiyar <katiyar76 [at] gmail.com> wrote:

> Hello Experts,
>
>
> I want to get the difference (say age of a person) in years, month and days
> from the current date to a given date.
> how can i achieve this, my server support PHP 5.20, where date interval
> function (date_diff) is not available, is
> there is any other way, rather than calculating in the hard way (i mean,
> keeping all the leap years and days in mind ).
>
> please suggest.
>
> prateek.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
http://www.php.net/manual/en/function.date-diff.php#101771

and see the other comments also.

Tyrael

--001485f85a1a852f9d049ad53d5a--
Ferenc Kovacs [ Do, 27 Januar 2011 16:02 ] [ ID #2053946 ]
PHP » gmane.comp.php.windows » Difference between two dates

Vorheriges Thema: problem in uploading file in PHP
Nächstes Thema: Apache error caused by PHP aspell