RE: [PHP] Week Number
| From: | Ben C. | Date: | Sun, 04 May 2003 05:34:37 +0000 |
| Subject: | RE: [PHP] Week Number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146326@lists.php.net to get a copy of this message | ||
No some years have 53 weeks.
-----Original Message-----
From: ruusvuu@whitney.dns2go.com [mailto:ruusvuu@whitney.dns2go.com]
Sent: Monday, December 31, 2001 4:39 PM
To: Ben C.
Cc: Matt Palermo; php-general@lists.php.net
Subject: RE: [PHP] Week Number
Wouldn't the 53rd week be the first week of the following year! :-)
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php