On Sun, 25 Feb 2001 14:22:06 +0100, "Mickey" <news001@susie.dyndns.dk>
wrote:
>jeg skal ha PHP til at finde ugenummeret.
>Er det muligt uden at skulle gennem en masse fiksfakserier med at
>tælle dage og dage i ugen osv ?
http://dk.php.net/manual/en/function.strftime.php
strftime -- Format a local time/date according to locale settings
Description
string strftime (string format [, int timestamp])
Returns a string formatted according to the given format string using
the given timestamp or the current local time if no timestamp is
given. Month and weekday names and other language dependent strings
respect the current locale set with setlocale().
The following conversion specifiers are recognized in the format
string:
.....
%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
.....
--
Mads Lie Jensen
Mads@gartneriet.dk
ICQ #25478403
http://www.gartneriet.dk