php date strtotime add days

Solutions on MaxInterview for php date strtotime add days by the best coders in the world

showing results for - "php date strtotime add days"
Vince
29 Apr 2019
1// add 1 day to the date above
2$n = date('Y-m-d', strtotime( $d . " +1 days"));
3
4// add 1 month to the date above
5$n = date('Y-m-d', strtotime( $d . " +1 month"));
6
7// add 1 year to the date above
8$n = date('Y-m-d', strtotime( $d . " +1 year"));
9
10// subtract 1 day to the date above
11$n = date('Y-m-d', strtotime( $d . " -1 days"));
12
13// subtract 1 month to the date above
14$n = date('Y-m-d', strtotime( $d . " -1 month"));
15
16// subtract 1 year to the date above
17$n = date('Y-m-d', strtotime( $d . " -1 year"));
Robbie
03 Feb 2018
1$NewDate = date('Y-m-d', strtotime('+7 days'));
queries leading to this page
php strtotime 2b 1 yearphp strtotime next day including timeadd days to string date phpadd days in strtotime in phpphp strtotime plus 1 daystrtotime php add dayshow to add date with days in phpphp strtotime add weeksphp strtotime 2b1 daystoday 2b 1 day phpphp date strtotime add daysadd 4 days to date string phpphp add time to strtotimestrtotime 2b 1 day phpphp timestamp add daysphp date add 1 hourphp add dayshow to add a day to a date string in phpadd one year to strtotime phphow to add one day in current date in phpphp add 1 day to current datecurrent date 2b 1 day in phpadd 1 hour php strtotime a specific datephp current date plus 1php current date 1 dayadd 1 day in current datetime phpstrtotime 1 day addadd days to string date in phpphp strtotime 2b x daysphp current date 2b 1 daystrtotime add one month phpadd 1 day to now 28 29 php how to add date with dynamic days in phpphp strtotime 2b 1 daystrtotime 1 day phpdatetime php difference in daysphp datetime minus 7 daysstrtotime plus 1 year phpphp date add time strtotimeadd date days phpphp current date add 1 dayphp strtotime day dayscurrent date 1 day phpstrtotime add one year in phpphp strtotime date add 1 hourstrtotime date add phpdatetime add days phpstrtotime add dateadd 1 day to strtotime phpphp strtotime 2 daystrtotime in php 1dayadd 3 days to date phpstrtotime 28 22 2b1 day phpstrtotime in php plus daysphp strtotime next day including hoursadd 1 day to current date in phpphp strtotime 2b 14 daysphp strtotime 2b1 yearphp strtotime plus 1 monthphp get current date 2b 1 dayphp strtotime 1 daystrtotime add daysphp today plus 1 dayphp strtotime add dayphp strtotime add 1 hourdatetime php add daysstrtotime php add strtotime php to daysphp date today 2b 1 dayphp date strtotime add days