SV: [PHP] Date difference

From: Date: Mon, 08 Jan 2001 21:42:59 +0000
Subject: SV: [PHP] Date difference
Groups: php.general 
Request: Send a blank email to php-general+get-33329@lists.php.net to get a copy of this message
This will give you the number of days, both for future an past dates, Use Your own values for $newMonth, $newDays and $newYear -- this in one line: $days = (abs(mktime(0,0,0, $newMonth, $newDay, $newYear) - mktime(0,0,0, date(m), date(d), date(Y)))/86400); Knut G. > -----Opprinnelig melding----- > Fra: Liam Gibbs [mailto:lgibbs@microlegend.com] > Sendt: 8. januar 2001 22:35 > Til: php-general@lists.php.net > Emne: [PHP] Date difference > > > Does anyone know how to figure out the amount of days between > today and a > future date? > > Liam Gibbs > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#33329) next »