View Single Post
Old 06-28-2009, 05:30 PM   #2 (permalink)
Runar
The Contributor
 
Runar's Avatar
 
Join Date: Nov 2008
Location: Norway
Posts: 58
Thanks: 20
Runar is on a distinguished road
Default

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
Send a message via MSN to Runar
Runar is offline  
Reply With Quote