PHP DOY
by TBotNik from LinuxQuestions.org on (#6FE8W)
All,
Been reading the PHP manual and searching online, as I need the "Day of the year (1-366) derived from TODAY() and was thinking a Julian date was the answer, but the more I read, I saw it always includes the year, but also realized the last 3 digits of the Julian date is really what I am seeking, but still have not determined nor decided on the easiest way to get the day number I need, as this is needed to extract DB info entered with the DOY being the primary key.
If you have an EZ way to do this please reply! Maybe I over looked something?
Cheers
TBNK
Been reading the PHP manual and searching online, as I need the "Day of the year (1-366) derived from TODAY() and was thinking a Julian date was the answer, but the more I read, I saw it always includes the year, but also realized the last 3 digits of the Julian date is really what I am seeking, but still have not determined nor decided on the easiest way to get the day number I need, as this is needed to extract DB info entered with the DOY being the primary key.
If you have an EZ way to do this please reply! Maybe I over looked something?
Cheers
TBNK