Re: This Monday problem
- From: Adam <anon@xxxxxxxxxxx>
- Date: Fri, 23 Mar 2007 02:08:45 +1200
On Thu, 22 Mar 2007 13:46:59 +0000, Geoff Berrow wrote:
Message-ID: <bg1503p2n63lufgnaf9cpu9mr6pko0q1ob@xxxxxxx> from Adam
contained the following:
I need to be able to return the corresponding dates for Mondays - and
have tried various functions, scripts with varying degrees of success.
date('d-M-Y', strtotime('this monday'));
... works, as does:
date('d-M-Y', strtotime('last monday'));
However, whilst this function works well most of the time, for some
reason it pukes on Monday 19th March - and always returns 18th Mar
(which is a Sunday!).
Spring forward, fall back?
Errmm ... you'll have to explain that one to me <!!!> I'm from the UK
- now in NZ. Is that a US term for some sort of daylight saving thing?
I think you're onto something though - our clocks went back a short
while ago - I'll need to ask when it was (my short-term memory is
*appalling*!!). Wouldn't surprise me if it wasn't the Sunday (18th)
before that dreaded Monday (18/19th).
Adam.
.
- Follow-Ups:
- Re: This Monday problem
- From: Geoff Berrow
- Re: This Monday problem
- From: Steve
- Re: This Monday problem
- References:
- This Monday problem
- From: Adam
- Re: This Monday problem
- From: Geoff Berrow
- This Monday problem
- Prev by Date: Re: This Monday problem
- Next by Date: Re: This Monday problem
- Previous by thread: Re: This Monday problem
- Next by thread: Re: This Monday problem
- Index(es):
Relevant Pages
|
|