Posted by el_roachmeister on 11/11/05 20:56
thanks for the replies, here's what I did. Is there any situation where this would not give the right answer? function get_current_day() { $then = mktime ( 0 , 0, 0, 1,1,'00'); $now = time(); $days = ($now - $then ) / 86400 - 1; return (int) $days; } // end function
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming