I am trying to add a certain amount of days to a set date in PHP. However, all of the code I use is not working. Here is the code I am currently experiencing problems with:<
You can use date_add() function:
$date = date_create('2013-12-01'); date_add($date, date_interval_create_from_date_string('7 days')); echo date_format($date, 'Y-m-d');
This will output 2013-12-08