![]() |
|
|
+ Search |
![]()
|
Aug 15th, 1999 09:00
Nathan Wallace, se@lakenet.no
look at the function date():
http://www.php.net/manual/function.date.php3
z - day of the year; i.e. "0" to "365", so:
$day_number=date("z");
This returns January 1 as being 0. If you want the day numbers to be
the usual 1-365 then you should use:
$day_number=date("z")+1;