06-28-2009, 05:30 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Nov 2008
Location: Norway
Posts: 58
Thanks: 20
|
You could use the date() function to either display the current week number, or get the week number from a string:
PHP Code:
echo date( 'W', $datestring ); // Prints something like: 42
echo date( 'W' ); // Prints current week number: 26
I hope this helps!
Edit: I misunderstood your question. I will try to think out a new solution.
Yours, Runar
|
|
|