note 55146 deleted from function.date by nlopess

From: Date: Sun, 31 Jul 2005 11:46:59 +0000
Subject: note 55146 deleted from function.date by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92801@lists.php.net to get a copy of this message
Note Submitter: tomchubb at gmail dot com ---- I couldn't find an easy way to display yesterday's date in the dd/mm/yyyy format, so I came up with this... <?php $yesterday = strftime ("%d/%m/%Y", (mktime (0,0,0,(date(m)),(date(d)-1),(date(Y))))); echo $yesterday; ?> Hope someone finds it useful

« previous php.notes (#92801) next »