RE: [PHP] Determine week

From: Date: Mon, 17 Jun 2002 16:35:20 +0000
Subject: RE: [PHP] Determine week
Groups: php.general 
Request: Send a blank email to php-general+get-102544@lists.php.net to get a copy of this message
> -----Original Message----- > Thanks, > but I think you didn't understand me. Actually, I think he did and he gave you the answer on how to solve the problem. Research the date and mktime functions on the PHP web site. They give a few examples that will help you understand what John said. > > You'll need a combination of date() and mktime(). > > > > I'm too lazy to write the exact code right now, but date('w') will > > return the day of the week, 0 = Sunday, 6 = Saturday. Then > use mktime() > > to subtract the number returned from date('w') from the > days component, > > and you'll have the start of the week. 6 minus the result > of date('w'), > > added to the day component of mktime(), will give you the end... **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.

« previous php.general (#102544) next »