$today=date("Y-m-d"); //2007-04-24 $strtoday=strtotime($today); $date=date('m-d-Y',$strtoday); echo $date; //04-24-2007
$today=date("Y-m-d"); //2007-04-24 $strtoday=strtotime($today); $date=date('m-d-Y',$strtoday); echo $date; //04-24-2007