php date + one day
<?php
$stop_date = '2009-09-30 20:24:00';
echo 'date before day adding: ' . $stop_date;
$stop_date = date('Y-m-d H:i:s', strtotime($stop_date . ' +1 day'));
echo 'date after adding 1 day: ' . $stop_date;
?>
php date + one day
<?php
$stop_date = '2009-09-30 20:24:00';
echo 'date before day adding: ' . $stop_date;
$stop_date = date('Y-m-d H:i:s', strtotime($stop_date . ' +1 day'));
echo 'date after adding 1 day: ' . $stop_date;
?>
php date strtotime add days
// add 1 day to the date above
$n = date('Y-m-d', strtotime( $d . " +1 days"));
// add 1 month to the date above
$n = date('Y-m-d', strtotime( $d . " +1 month"));
// add 1 year to the date above
$n = date('Y-m-d', strtotime( $d . " +1 year"));
// subtract 1 day to the date above
$n = date('Y-m-d', strtotime( $d . " -1 days"));
// subtract 1 month to the date above
$n = date('Y-m-d', strtotime( $d . " -1 month"));
// subtract 1 year to the date above
$n = date('Y-m-d', strtotime( $d . " -1 year"));
add 1 day php datetime
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));
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