| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001164.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() PHP
![]() Date calculations
|
| next newest topic | next oldest topic |
| Author | Topic: Date calculations |
|
badboy Member |
How can I calculate the number of days since the beginning of the present year ? Lets say I have a day May 17th and I want to know which day number it is in the 365 day cycle. ex: january 10th is day 10 May 17th is day 108 Thanks, |
|
aarongb Member |
Simple. date("z"); found at: http://www.php.net/manual/function.date.php3 If Rod k finds a simpler solution, I am going to punch myself. |
|
scollo Member |
echo (date ("z", time())); |
|
scollo Member |
Aaron, I don't mean this as a simpler solution. We were responding at the same time and didn't realize it. -- Christopher |
|
badboy Member |
Wow ! was that an easy one, guess I need to by another book on PHP as I was not able to find such an example. Thanks |
|
rod k Member |
LOL @ aaron |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.