note 64280 deleted from function.date by derick

From: Date: Sun, 11 Jun 2006 11:45:37 +0000
Subject: note 64280 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-114261@lists.php.net to get a copy of this message
Note Submitter: stoo at NOSPAM dot angel13 dot co dot uk ---- An easier way to find the number of days between two dates.... <?php $date1 = mktime(0,0,0,1,1,2006); $date2 = mktime(0,0,0,date('m'),date('d'),date('Y')); $total_days = Round((($date2-$date1)/86400), 0) ; echo $total_days ; ?>

« previous php.notes (#114261) next »