note 66434 added to function.date
| From: | jason at techsavy dot net | Date: | Mon, 22 May 2006 14:22:23 +0000 |
| Subject: | note 66434 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111826@lists.php.net to get a copy of this message | ||
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..
----
Server IP: 216.194.113.175
Probable Submitter: 68.213.31.115
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/note/edit/66434
Del: integrated -- http://master.php.net/note/delete/66434/integrated
Del: useless -- http://master.php.net/note/delete/66434/useless
Del: bad code -- http://master.php.net/note/delete/66434/bad+code
Del: spam -- http://master.php.net/note/delete/66434/spam
Del: non-english -- http://master.php.net/note/delete/66434/non-english
Del: in docs -- http://master.php.net/note/delete/66434/in+docs
Del: other reasons-- http://master.php.net/note/delete/66434
Reject -- http://master.php.net/note/reject/66434
Search -- http://master.php.net/manage/user-notes.php