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.
我必须将此日期的格式从 2012-11-03CET21: 00:00 +0100 转换为 21:00 - 03/11/2012 我该怎么做?
底层字符串打印“2012-11-03CET21: 00:00 +0100”
$start_date = date($values['start_time'] ); echo $start_date;
但我希望是这样 21:00 - 03/11/2012
$myval = "2012-11-03CET21:00:00 +0100"; $start_date = date("H:i - d/m/Y", strtotime($myval)-3600); echo $start_date;