php - show calculated date in every row -
consider table given below--
-------------------------------------- age | date 1 day 1 day | 05/02/2016 1 day 6 week | 05/02/2016 17/02/2016 4 week 10 week| 25/02/2016 14/04/2016
if 05/02/2016
fixed how show other dates in php , dynamic means 05/02/2016
changed.
function getselecteddate($days){ return date('y.m.d',strtotime("$days days")); }
pass days count 7 days week 14 days 2 week give date current date. example oneweekafterdate = getselecteddate(7);
Comments
Post a Comment