Are you want to add days to date? Here is the solution to add days to the current date or desired date using PHP.
The following source code will add 5 days to date.
Source:
<?php
$date = "2015-11-17";
echo date('Y-m-d', strtotime($date. ' + 5 days'));
?>
Result:
2015-11-22
The following source code will add 5 days to current date.
<?php echo date('Y-m-d', strtotime(' + 5 days')); ?>
Thanks you so much!
thanks ,heavenly sent
Your code is the best
This is really great articles ! it helps me a lot .. keep it up great work . Thanks for posting nice articles ..
Thanks for sharing this code with us
Thanks for sharing this code with us. This is really help us a lot. I have used this code and it works fine. I have resolved my project issues finally. Thanks
thanks ,keep it up