note 94188 deleted from datetime.diff by danbrown

From: Date: Wed, 21 Oct 2009 16:44:09 +0000
Subject: note 94188 deleted from datetime.diff by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161949@lists.php.net to get a copy of this message
Note Submitter: 512banque at gmail dot com ---- the previous code didn't work. But this one does : <?php $Today = new DateTime(); $DateAction = new DateTime('2009-08-10'); $Difference = $Today->diff($DateAction); echo 'the difference is '. $Difference->d .'days'; ?>

« previous php.notes (#161949) next »