Method 1:
//list($first,$second)=explode(" ",$date_temp);
//echo $first;
//echo substr($first,2 )
Method 2:
// echo date("Y-m-d", strtotime($date_temp));
Method 3:
echo substr($date_temp,0,10)."
alert('Safe exit!!');";
echo "";
http://www.bkjia.com/PHPjc/317774.html
www.bkjia.com
true