0
How to print next day of the input date in PHP?
5 Answers
+ 2
Just pass user input into a variable.
Ex:
$input = '3 October 2005';
$output = date('d-m-y', strtotime ($input.' + 1 day'));
echo $output;
+ 1
Use strtotime(' +1 day');
Ex:
$output = date('d-m-y', strtotime(' +1 day'));
echo $output;
+ 1
Thong Nguyen thanks
+ 1
Please to help you!
0
Ok but this is for current date, what if user input a date than I have to print next date of that?