Answers for "how to calculate next 12 month date from date in php"

PHP
0

php date today plus 1 month

$future_timestamp = strtotime("+1 month");
$data = date('Y-m-d', $future_timestamp);
Posted by: Guest on July-23-2020
1

get next month first day php

$config_month  = 1;
$config_day = 1;

$new_expiry_date = date('Y-m-d', mktime(0, 0, 0, date('m') + $config_month, 1 + $config_day, date('Y')));
Posted by: Guest on January-08-2021

Code answers related to "how to calculate next 12 month date from date in php"

Browse Popular Code Answers by Language