Re: Get the date of the last sunday

From: Date: Thu, 16 Jan 2003 03:11:26 +0000
Subject: Re: Get the date of the last sunday
Groups: php.general 
Request: Send a blank email to php-general+get-131804@lists.php.net to get a copy of this message
RDS> how can i easily get the date of the last sunday. php or javascript code to RDS> do this would be appreciated. <?php $d=time(); while (date("w",$d)!="0") $d-=86400; print "Last Sunday was ".date ("M/d/Y",$d); ?> Gladky Anton mailto:gladk@rambler.ru

« previous php.general (#131804) next »