I was trying to use the following formula to add a number of weeks to a
date, where $b is the number of weeks.
date('Y-m-d', strtotime($Expi ry_Date)+$b*864 00*7)
However sometimes it added one day less than it should have done.
$Expiry_Date was always a Saturday and sometimes the answer was a Saturday
and sometimes the previous Friday.
Has anyone any idea why?
TIA
Regards
Paul
date, where $b is the number of weeks.
date('Y-m-d', strtotime($Expi ry_Date)+$b*864 00*7)
However sometimes it added one day less than it should have done.
$Expiry_Date was always a Saturday and sometimes the answer was a Saturday
and sometimes the previous Friday.
Has anyone any idea why?
TIA
Regards
Paul
Comment