|
Posted by Adam on 03/22/07 13:40
Hi folks,
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!).
I could understand it if it crossed a leap year threshold of some sort
(eg. Feb 28th) - but 18 March???
This is with both PHP4 and PHP5.
Any clues?
Adam.
Navigation:
[Reply to this message]
|