On Thu, 29 May 2003 15:40:00 +0100, Shaun wrote: >of course ;) > >but i couldn't find a reference to this particular problem...
I don't think you are going to find a standard PHP function to do this. You are going to have to do something like this (I haven't tried it but I think it will do what you want): // Get a starting time $d = strtotime( "12/31/2003" ); // Get the date of the Sunday on/or before that date $s = strtotime( "-" . date("w", $d) . " days", $d ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php