Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何转换
$time = "31-08-2013T14:00";
至
$time = "Sa, 14:00" #sa for saturday
我尝试了以下方法:
$time = date("D H:i", $time);
但这不起作用。有谁能够帮我?
尝试strtotime
strtotime
$time = date("D H:i", strtotime($time));
您需要将其转换$time为字符串
$time