Saturday, November 17, 2007

day of the year

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;

Powered by ScribeFire.

No comments:

Post a Comment