Skip to content

PHP code snippet – How to add extra days from a date ?

// PHP program to add days to $Date 
// Declare a date 
$date = "2019-05-10"; 
// Add days to date and display it 
echo date('Y-m-d', strtotime($date. ' + 10 days')); 
See also  Python code snippet - How to use a variable to trigger an event?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.