note 109767 rejected from dateinterval.construct by aharvey
| From: | aharvey@php.net | Date: | Mon, 20 Aug 2012 01:22:46 +0000 |
| Subject: | note 109767 rejected from dateinterval.construct by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190136@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
hello i am getting date and time from database and i want to add dynamic no of days to the date, i
got perfect date but i have difference in time what can i do for this, i am using the code below, i
need perfect time accuracy with the second,
function get_last_date($get_first_date,$day)
{
$dateis = strtotime("+".$day." days", strtotime($get_first_date));
return date("Y-m-d H:m:s", $dateis);
}
$get_last_date= get_last_date($get_first_date,$day);