note 98548 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Tue, 22 Jun 2010 13:43:40 +0000 |
| Subject: | note 98548 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170380@lists.php.net to get a copy of this message | ||
Note Submitter: mukherjee dot sushovan at gmail dot com
----
To get next date for a date:
function nextDate($of)
{
$arr = split("-",$of);
return date("Y-m-d",(mktime(0,0,0,$arr[1],$arr[2],$arr[0])+(3600*24)));
}
echo nextDate("2010-05-06"); // 2010-05-07