Forum Moderators: coopster
function get_current_day() {
$then = mktime ( 0 , 0, 0, 1,1,'00'); $now = time();
$days = ($now - $then ) / 86400 - 1;
return (int) $days;
} // end function