Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Add month to date

<?php
$date = new DateTime('2000-12-31');

$date->modify('+1 month');
echo $date->format('Y-m-d') . "
";

$date->modify('+1 month');
echo $date->format('Y-m-d') . "
";
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Add #month #date
ADD COMMENT
Topic
Name
9+7 =