Is there a standard function in PHP that will find the day number of the year based on the current date?
Jan 22nd = 22 Feb 27th = 58 Mar 5th = 64
If there isn’t a standard function, has anyone built anything similar that would handle the conversion? What all is involved?
date('z') + 1;
z format character of the
echo date('z'); // 22, based on the "current date"
// get day of year for 08 aug 2008 // result 221 echo date("z", mktime(0,0,0,8,8,2008))+1;