假定日期格式为Feb 1 2000,其它格式类似。
代码如下:<?php function str2date($str) {$months = array('Jan'=>1,'Feb'=>2,'Mar'=>3,'April'=>4,'May'=>5,'Jun'=>6,
                'Jul'=>7,'Aug'=>8,'Sep'=>9,'Oct'=>10,'Nov'=>11,'Dec'=>12);$arrDate =split(' ',$str) ;$m =$months[$arrDate[0]];
$d = $arrDate[1];
$y = $arrDate[2];$tm = mktime(0,0,0,$m,$d,$y);echo date('M-d-Y',$tm); //此句仅为示意}str2date("Feb 1 2000");?>