Re: How many days between two dates
| From: | Marek Kilimajer | Date: | Mon, 16 Feb 2004 23:09:30 +0000 |
| Subject: | Re: How many days between two dates | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177887@lists.php.net to get a copy of this message | ||
Shaun wrote:
"Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:403147AB.40100@webglobe.sk...Let mysql do it: SELECT TO_DAYS(date1) - TO_DAYS(date2) AS number_of_days ...Shaun wrote:Sorry, The dates are retrieved from the database so are stored as YYYY-MM-DD HH-MM-SS in MySQL Thanks for your helpHi, how can I check how many days are between two given dates? Thanks for your helpThere are many ways, it would help if you tell us what form are the dates in - timestamp, formated string, sql date column ...