echo date(‘H:i:s’, strtotime(‘now’)) . ‘<br>’;
echo date(‘Y-m-d’, strtotime(„+2 days”)) . ‘ ‘ . date(‘H:i:s’, strtotime(‘now’)) . ‘<br>’;
$task_dateend = date(‘Y-m-d H:i:s’, strtotime(date(‘Y-m-d’, strtotime(„+2 days”)) . ‘ ‘ . date(‘H:i:s’, strtotime(‘now’))));
echo $task_dateend;

Wynki:
2009-07-25 14:02:51

Dodaj komentarz

* pole obowiÄ…zkowe