The second strtotime
parameter expects strtotime
time, not a string. See the strtotime
.
You can use strtotime
again for the second parameter to get what you want:
echo gmdate('Ymd H:i:s',strtotime('+7 days',strtotime('2035-01-01 00:00:00')));
Blake source share