RE: [PHP] Week Number

From: Date: Sat, 03 May 2003 23:37:07 +0000
Subject: RE: [PHP] Week Number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146309@lists.php.net to get a copy of this message
Matt, If you are using MySQL you can use the MySQL function SELECT WEEK('2001-12-30'); it would return 53 for the 53rd week. Hope this helps...Ben -----Original Message----- From: Matt Palermo [mailto:mpalermo@vt.edu] Sent: Friday, May 02, 2003 10:01 PM To: php-general@lists.php.net Subject: [PHP] Week Number Does anyone know if there is a function where I can feed it the day, month, and year parameters, and it will give me the week number of the year (like week 1-52)? Please let me know. Thanks. Matt

« previous php.general (#146309) next »