add 1 day php datetime
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));
add 1 day php datetime
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));
Add days to date in PHP
$date = new DateTime('2020-11-24');
$date->add(new DateInterval("P9D"));
echo $date->format('Y-m-d');
get 2 days before date in php
date('Y/m/d',strtotime("-1 days"));
Or Use DateTime class like this-
$date = new DateTime();
echo $date->modify("-1 days")->format('Y-m-d');
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