0

How to print next day of the input date in PHP?

22nd Sep 2019, 11:12 AM
Akash Saingar
Akash Saingar - avatar
5 Respuestas
+ 2
Just pass user input into a variable. Ex: $input = '3 October 2005'; $output = date('d-m-y', strtotime ($input.' + 1 day')); echo $output;
22nd Sep 2019, 1:13 PM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
Use strtotime(' +1 day'); Ex: $output = date('d-m-y', strtotime(' +1 day')); echo $output;
22nd Sep 2019, 12:54 PM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
Thong Nguyen thanks
22nd Sep 2019, 1:23 PM
Akash Saingar
Akash Saingar - avatar
+ 1
Please to help you!
22nd Sep 2019, 1:26 PM
Thống Nguyễn
Thống Nguyễn - avatar
0
Ok but this is for current date, what if user input a date than I have to print next date of that?
22nd Sep 2019, 1:00 PM
Akash Saingar
Akash Saingar - avatar