RE: [PHP] simple question...
| From: | Eric O'Connell | Date: | Thu, 20 Sep 2001 13:40:08 +0000 |
| Subject: | RE: [PHP] simple question... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67984@lists.php.net to get a copy of this message | ||
> One more thing... If I got '2001-09-01'
> Is there a fast way of incrementing the month of it?
> making it '2001-10-01' ?
list($year, $month, $day) = explode("-", $date);
$month++;
if ($month == 13)
$month = 1;
$date = "$year-$month-$day";
Eric O'Connel