RE: [PHP] How many days between two dates

From: Date: Mon, 16 Feb 2004 23:02:45 +0000
Subject: RE: [PHP] How many days between two dates
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177885@lists.php.net to get a copy of this message
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:shaun@mania.plus.com] Sent: Monday, February 16, 2004 2:55 PM To: php-general@lists.php.net Subject: Re: [PHP] How many days between two dates "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:403147AB.40100@webglobe.sk... > 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

« previous php.general (#177885) next »