Search
 
SCRIPT & CODE EXAMPLE
 

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') . "
";
?>
Comment

PREVIOUS NEXT
Code Example
Php :: pdo mysqli error handling 
Php :: laravel factory in custom namespace 
Php :: read pdf text php 
Php :: wordpress use jquery in plugin 
Php :: wordpress nav menu align right 
Php :: withsuccess laravel 8 
Php :: php array destructuring 
Php :: like %% inside the string php 
Php :: php contain 
Php :: load session in codeigniter 
Php :: call api php 
Php :: Getting the closest string match using php 
Php :: remove blank data in multidimention array in laravel 
Php :: magento2 move Exception #0 (Exception): Notice: Undefined offset: 2 in /var/www/nucleus/htdocs/vendor/magento/framework/Encryption/Encryptor.php on line 591 
Php :: laravel packages 
Php :: smarty php 
Php :: laravel sharing image 
Php :: php preg_quote 
Php :: php extract number from string without comma 
Php :: how to run curl command through php script 
Php :: php list all files in directory 
Php :: laravel db raw count where 
Php :: set cookie on button click JavaScript 
Php :: session_regenerate_id 
Php :: checks if file is empty in php 
Php :: laravel validation custom message example 
Php :: spatie activity log 
Php :: laravel route pattern 
Php :: in date function + 1 month and - 1 day in php 
Php :: wp_query custom post type 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =