+1 month php
$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
+1 month php
$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
in date function + 1 month and - 1 day in php
<?php
$months = n; // Here n = …..-2,-1,0,1,2, …..(months to add or subtract)
$years = n; // Here n = …..-2,-1,0,1,2, …..(years to add or subtract)
echo date('Y-m-28', mktime(0, 0, 0, date('m')+$months, 1, date('Y') + $years));
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us