Re: How to get week number from date
| From: | Shane Wright | Date: | Tue, 11 Dec 2001 16:23:15 +0000 |
| Subject: | Re: How to get week number from date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77307@lists.php.net to get a copy of this message | ||
Actually, this is in PHP 4.1.0 which has just been released...
..here's the line from the changelog:
"Added 'W' flag to date() function to return week number of year using ISO
8601 standard. (Colin)"
--
Shane
On Tuesday 11 Dec 2001 3:37 pm, Nick Ward wrote:
> Hello,
>
> First of all I am very new to PHP so if I am asking something very obvious
> then I apologise. I am writing a time-sheet application for a division of
> our company and we book all time by week number. Is it possible to get PHP
> to work out the week number (1-53) from the current date.
>
> Any help and advice would be greatly appreciated.
>
> Regards
>
> Nick Ward