Re: Date question

From: Date: Thu, 29 May 2003 14:50:07 +0000
Subject: Re: Date question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149411@lists.php.net to get a copy of this message
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 );

« previous php.general (#149411) next »