RE: [PHP] Need to know the date of the Monday for the week I'm in.

From: Date: Mon, 07 Apr 2003 21:07:13 +0000
Subject: RE: [PHP] Need to know the date of the Monday for the week I'm in.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142753@lists.php.net to get a copy of this message
no. i mean that say the date was Wednesday April 9th (20030409), what i want is to know Monday April 7th (20030407). I should get the same result (20030407) if i pass in 20030413 as well, since that'd be the sunday of the same week (weeks go Mon - Sun in my calendar) -----Original Message----- From: Jay Fitzgerald [mailto:jayfitz@bayou.com] Sent: Monday, April 07, 2003 2:02 PM To: Daevid Vincent Subject: Re: [PHP] Need to know the date of the Monday for the week I'm in. is this what you need? Current Date and Time is: <B><? echo date("l, F d h:i"); ?> outputs to Current Date and Time is: Monday, April 07 03:58 At 01:56 PM 4/7/2003 -0700, you wrote: Anyone have some code that will tell me the date of the Monday for the week I'm in (I assume a week starts on Monday and ends on Sunday night)... Ideally it should be in YYYYMMDD format too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Internet - http://www.bayou.com <http://www.bayou.com/> Toll Free: 888.30.BAYOU (22968) Vox: 318.338.2034 / Fax: 318.338.2506 E-Mail: jayfitz@bayou.com ICQ: 38823829 / AIM: bayoujf / MSN: bayoujf / Yahoo: bayoujf

« previous php.general (#142753) next »