RE: [PHP] Is correct ??

From: Date: Wed, 31 Jan 2001 17:36:40 +0000
Subject: RE: [PHP] Is correct ??
Groups: php.general 
Request: Send a blank email to php-general+get-37507@lists.php.net to get a copy of this message
> Anybody knows if this sourcecode is correct to calculate the > numbers of days in certain date ? Why are you going through all that effort? $janOne = mktime( 0, 0, 0, 1, 1, date( "Y" )); $myDate = mktime( 0, 0, 0, $m, $d, $y ); $daysInYear = ( $myDate - $janOne ) / 86400; That should do it for you... Chris

« previous php.general (#37507) next »