$d=date('Ymd'); $r = array('promoend' => '12-12-2001'); echo $c=(strtr($r['promoend'],array(" "=>"","-"=>"",":"=>""))>$d)?'#caffca':'#e9e9e9';