I get week = 0 right now, why it's week = 1 now!
$this_week = strftime("%W");
I also tried setting setlocale to swedish, but to no help at all!
setlocale(LC_ALL, "swedish");
I run this on a WinNT 4 machine. PHP v4.06
Any ideas?
Weeknumbers are only a definition. You call it week '1', the rest of the world call's it week '0'.
Readthe manual, you can also use %V to get the ISO standard week, wich does start at 1.
How could I miss it... but anyway %V didn't work on our NT server with PHP v4.06 it returned "" Why??
It did work on our external webserver running Linux apache!
Microsoft bug!!!? http://bugs.php.net/bug.php?id=8776
Any workaround??
Silly question: can't you just take the %W number and add one? :-)
Nope, it's not that easy then I would get weeks like 54 sometimes and the first week of the year to start at 2 some years.
But I think I made it now... I'll post the solution when I know it works.