Configuration: PHP 4.04pl1 and MySQL 3.23.35 on a W98SE / PWS. I am trying to output the week number in a simple calendar application i have. (Why don't any of the calendars examples out there have week numbers?) In the php manual it says: strftime Usage: string strftime (string format [, int timestamp]) %U - week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week. %W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week I believe that i (located in sweden) should use the %V option. So if i run this code: <? $currYear=2001; $currMonth=5; $currDay=10; $week = strftime("%A %V %U %W", mktime(0,0,0,$currMonth,$currDay,$currYear)); echo $week; ?> I get this output: "Thursday 18 19". It seems like the %V does not show. Why not? "19" is correct, but i really feel more comfortable if i could get the %V option going. Does it have something to do with setlocale()? By the way, how the #¤%& do a call to the setlocale() function look like if i want Swedish settings? -- Michel Laine NOTE! If you reply directly to me (instead of the list) you have to remove the NOSPAM in the email address before replying! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]