if(pub_date=0,createdon,pub_date)