jsteiner87
Programmer
I have a date being stored in a MYSQL database. I want to take that day and add months to it. How do you go about doing this? It is stored as a Date (MM-DD-YYYY) in the database.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?
$olddate = "2006-06-01";
$newdate = date("Y-m-d", strtotime("+1 month", strtotime($olddate)));
echo $newdate;
?>