note 73910 deleted from function.date by felipe

From: Date: Sun, 09 Dec 2007 13:33:00 +0000
Subject: note 73910 deleted from function.date by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132989@lists.php.net to get a copy of this message
Note Submitter: soreenpk at yahoo dot com ---- we can find the different in days between two date e.g now and some past date from db throught the following simple line of code; $digest_date = "2007-03-15"; $date_diff = date("d",strtotime(date('y-m-d'))) - date("d",strtotime($digest_date));

« previous php.notes (#132989) next »