$N_pub_date = strtotime("{$row['pub_date']}"); $N_pub_date = date("m/d/y", $N_pub_date); echo $N_pub_date