Use KronoClass:

http://lafucina.holosoft.it/kronoclass/index.html

example:

// Now calc how days are between date_from and date_to
echo '<b>How many days are between 03/20/2003 and 04/21/2003 ?: </b><i>';
echo $k->days_diff('03/20/2003','04/21/2003');
echo '</i><br><br>';


-----Original Message-----
From: Shaun [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 16, 2004 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How many days between two dates


"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Shaun wrote:
> > Hi,
> >
> > how can I check how many days are between two given dates?
> >
> > Thanks for your help
> >
>
> There are many ways, it would help if you tell us what form are the
> dates in - timestamp, formated string, sql date column ...

Sorry,

The dates are retrieved from the database so are stored as YYYY-MM-DD
HH-MM-SS in MySQL

Thanks for your help

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to