note 4784 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:36:32 +0000
Subject: note 4784 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20039@lists.php.net to get a copy of this message
To get yesterdays date use: date("<your format string>",time() - 86400); //(There are 86400 seconds in one day: 24 * 60 * 60) For tomorrow use +, and for X days in the future/past simply use X times 86400.

« previous php.notes (#20039) next »