当前位置:Gxlcms > PHP教程 > 怎么将2012/9/6转换成2012-09-09

怎么将2012/9/6转换成2012-09-09

时间:2021-07-01 10:21:17 帮助过:12人阅读

如何将2012/9/6转换成2012-09-09?
如何将2012/9/6转换成2012-09-09?
------解决方案--------------------
$s='2012/9/6';
echo date("Y-m-d",strtotime($s));

人气教程排行