I am saving dates like so: 2013-11-06 using date function
date("Y-m-d")
Would like to add three days to the date. Would I need to use strtotime() for this?
$datetime = new DateTime('2013-01-22');
$datetime->modify('+1 day');
echo $datetime->format('Y-m-d H:i:s');
you may find here more Date time
Here you go
echo date('Y-m-d', strtotime("+3 days"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With