date ( string format [, int timestamp ] )

z - The day of the year - 0 through 366 

$doy = Date("z") ;

http://us2.php.net/manual/en/function.date.php

aaron


> -----Original Message-----
> From: JC Botha [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 04, 2005 11:46 AM
> Cc: php-windows@lists.php.net
> Subject: [PHP-WIN] Programming problem... Date day locater!
> 
> Hi there to all.
> 
> I need to get the day number of any given date. Like if the date 20
> Jan 2005 is given I need to calculate that it is day 20 in the year.
> 
> Any thoughts on solving this would be much appreciated.
> 
> Chris
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to