Scroll to top

How to add days in a specific date in php?


Notice: Undefined variable: string in /home/u665484253/domains/wpcodekit.com/public_html/wp-content/themes/twentytwenty-child/functions.php on line 61

How to add days in a specific date in php?

 

<?php
$Date = “2010-09-17”;
echo date(‘Y-m-d’, strtotime($Date. ‘ + 1 days’));
echo date(‘Y-m-d’, strtotime($Date. ‘ + 2 days’));
?>

Get more information

 

Read More Posts

Leave a Reply

Your email address will not be published.