RE: [PHP] Week Number
| From: | John W. Holmes | Date: | Sat, 03 May 2003 05:07:41 +0000 |
| Subject: | RE: [PHP] Week Number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146235@lists.php.net to get a copy of this message | ||
> 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.
Echo date('W',mktime(0,0,0,$month,$day,$year));
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/