Re: Dates and Date()
| From: | Analysis & Solutions | Date: | Mon, 29 Jul 2002 14:55:35 +0000 |
| Subject: | Re: Dates and Date() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110182@lists.php.net to get a copy of this message | ||
On Mon, Jul 29, 2002 at 10:51:39AM -0400, Christopher J. Crane wrote:
> I believethisto be one way to find out yesterday's date:
> $tomorrow = mktime (0,0,0,date("m") ,date("d")-1,date("Y"));
>
> However, I would like to have a snippet of code to tell me how to get the
> date of today - 10 days ago.
You have a working example of how to get yesterday. Did you even try to
rework it to get ten days ago by substituting "-10" for "-1"? What
happened?
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409