note 66434 rejected from function.date by nlopess
| From: | nlopess@php.net | Date: | Mon, 22 May 2006 15:24:40 +0000 |
| Subject: | note 66434 rejected from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111829@lists.php.net to get a copy of this message | ||
Note Submitter: jason at techsavy dot net
----
I can find where you can add days to a date as in:
$day = (date("d")+9);
but i cannot find anything that will take that day and add it to a date correctly... as in
$close_date = date("Y-m-".$day."");
what i get is something like 2006-05-32
instead of 2006-06-01
how can i write a function that will correctly do this.. any help would be appreciated..