A nice day out
- From: "Paul Lautman" <paul.lautman@xxxxxxxxxxxxxx>
- Date: Wed, 3 May 2006 11:32:58 +0100
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($Expiry_Date)+$b*86400*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
.
- Follow-Ups:
- Re: A nice day out
- From: Andy Jeffries
- Re: A nice day out
- Prev by Date: Re: Get cookie expiry time
- Next by Date: Re: A nice day out
- Previous by thread: echo double quote problem
- Next by thread: Re: A nice day out
- Index(es):