Add days to current date in php
Add days to date
The following source code will add 5 days to date:
<?php $date = "2020-10-15"; echo date('Y-m-d', strtotime($date. ' + 5 days')); ?> Output: 2020-10-120
Add days to current date
The following source code will add 5 days to date:
<?php echo date('Y-m-d', strtotime(' + 5 days')); ?>