I want to get the next date inside the assigned variable the i made. for example, i have $date = date(‘2016-02-15’); the next date should be 2016-02-16.
below is my code:
I want to get the next date inside the assigned variable the i made. for example, i have $date = date(‘2016-02-15’); the next date should be 2016-02-16.
below is my code:
The first thing you can learn HTML, whether you want to become a professional web developer or just want to learn more about how websites work. The basic language for developing web pages and web applications is HTML. A server ...
Asynchronous Javascript One of AJAX’s benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and ...
How To Make Cookie Free Domain An HTTP cookie (also known as a web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user’s computer by the ...
echo date(’Y-m-d’, strtotime(”+30 days”));
sir, I’m not asking for the next date of the current date. since I assigned a variable with a date of 2016-02-15, i wanted to get the output of 2016-02-16. given this code:
$starting_date = date(’2016-02-15’);
$date = date($starting_date, strtotime(’+1 day’));
i do hope you can resolve my question sir. thanks in advance.
Ok. So, there is a little mess in your syntax. Please use the below one:
$date = ’2016-02-15′; //Date Which is you getting from database
$nextdate = date(’Y-m-d’, strtotime(’+1 day’, strtotime($date)));