AW: [PHP] How to get week number from date

2001-12-11 Thread Ulrich Hacke
> 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)" If you have an older version you can use this line: $week_number = strftime("

Re: [PHP] How to get week number from date

2001-12-11 Thread Shane Wright
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 ver

[PHP] How to get week number from date

2001-12-11 Thread Nick Ward
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 h