|
Posted by Adam on 03/22/07 14:08
On Thu, 22 Mar 2007 13:46:59 +0000, Geoff Berrow wrote:
>Message-ID: <bg1503p2n63lufgnaf9cpu9mr6pko0q1ob@4ax.com> 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.
Navigation:
[Reply to this message]
|