Re: Date question

From: Date: Thu, 29 May 2003 14:59:14 +0000
Subject: Re: Date question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-149418@lists.php.net to get a copy of this message
On Thursday 29 May 2003 22:40, Shaun wrote: > of course ;) Try: $start_date_ts = time(); if ('Mon' != date('D', $start_date_ts)) { $start_date_ts = strtotime("last monday"); } $start_date = strftime("%Y-%m-%d", $start_date_ts); echo $start_date; Season to taste. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------

« previous php.general (#149418) next »