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
Post a Comment