How can I increment a date by one day in Php? -


i using this syntax increase 1 day above when put format still give me wrong date this. '01/01/1970' want format , date '25/08/2016'.

$today = '24/08/2016'; $nextday = strftime("%d/%m/%y", strtotime("$today +1 day")); 

so please me how can this.advance thanx.

you can use strtotime.

$your_date = strtotime("1 day", strtotime("2016-08-24")); $new_date = date("y-m-d", $your_date); 

hope you.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -