第一种方式
<BR>$date= date("Y-m-d",st<i>本文@来#源gaodai$ma#com搞$$代**码网</i><strong>搞代gaodaima码</strong>rtotime("2011-12-12")); <BR>
第二种方式
<BR>$date = "2011-12-12"; <BR>$year=((int)substr($date,0,4));//取得年份 <BR>$month=((int)substr($date,5,2));//取得月份 <BR>$day=((int)substr($date,8,2));//取得几号 <BR>$_date = date("M-d-Y",mktime(0,0,0,$month,$day,$year)); <BR>