I am using this this syntax to increase one day above but when i put this format it still give me wrong date like this. '01/01/1970' But I want format and date like this '25/08/2016'.
$today = '24/08/2016';
$nextday = strftime("%d/%m/%Y", strtotime("$today +1 day"));
so please help me how can i do 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 it will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With