尝试
原文链接:https://www.f2er.com/php/138588.htmldate_parse_from_format()
:
@H_502_5@$date = "2010-08-12";
$d = date_parse_from_format("Y-m-d",$date);
echo $d["month"];