date formatting
| From: | Mike Teigen | Date: | Wed, 23 Feb 2000 06:21:56 +0000 |
| Subject: | date formatting | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10693@lists.php.net to get a copy of this message | ||
ok, ill try and explain this as well as i can
i need to know how to add 21 days to whatever the current date is to make two variables, one being
todays date, the other being exactly 21 days after todays date... how do i add 21 days to todays
date??
$currentDate = date("Y-m-d");
$warningDate = $currentDate + 21;
(this doesnt work, just using it as a simplified example of what i want to do...)
Mikey T