Answers for "php date increase 1 month"

PHP
1

+1 month php

$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
Posted by: Guest on August-07-2020
0

php date modify plus 1 day

<?php
$date = new DateTime('2006-12-12');
$date->modify('+1 day');
echo $date->format('Y-m-d');
?>
Posted by: Guest on December-17-2021

Browse Popular Code Answers by Language