minus 1 year php
$year = new DateTime(date('Y-m-d')); // gets current date
$interval = new DateInterval('P1Y');
$year->sub($interval); // subtract 1 year with $interval
// var_dump($year->format('Y')); or var_dump($year->format('Y-m-d'));
minus 1 year php
$year = new DateTime(date('Y-m-d')); // gets current date
$interval = new DateInterval('P1Y');
$year->sub($interval); // subtract 1 year with $interval
// var_dump($year->format('Y')); or var_dump($year->format('Y-m-d'));
php remove 1 day from date
print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));
php date format minus 1 day
date('Y-m-d',(strtotime ( '-1 day' , strtotime ( $date) ) ));
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