Re: mktime + 4 days
| From: | Jason Stechschulte | Date: | Tue, 13 Feb 2001 13:15:32 +0000 |
| Subject: | Re: mktime + 4 days | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39407@lists.php.net to get a copy of this message | ||
On Mon, Feb 12, 2001 at 11:06:16PM -0600, Christopher Allen wrote:
> $tomorrow = date ("d", mktime(0,0,0,0,date("d") +4 ) );
> echo "Today + 4 days is $tomorrow <br>";
> screws up Feb et al....
If you add the month and year, it should work just fine.
$tomorrow = date ("d", mktime(0,0,0,date("m"),date("d")
+4,date("Y")));
--
Jason Stechschulte
jpstech@unoh.edu
--
It's all magic. :-)
-- Larry Wall in <7282@jpl-devvax.JPL.NASA.GOV>