html - Trying to add 24 hours to a date which is stored in a variable. PHP -


i have variable holding output of datepicker input tag. want add 24 hours it.

as stands, if var_dump variable is:

string(10) "dd/mm/yyyy"

how go adding 1 day it?

i have tried:

$finishdate2 = date('d-m-y',strtotime($finishdate . "+1 days")); 

but seem weird dates.

$date="10/05/2015"; $date1=str_replace("/","-",$date); $tomorrow=date('d/m/y',strtotime($date1 . "+1 days")); 

you can try this


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -