[我正在使用一种API,在其中我获得此DateTime格式为“ 2020-02-15T14:00:00Z”,如何在php中像16个小时前一样转换此格式。
$date = '2020-02-15T14:00:00Z'; $fixed = date('d-m-Y', strtotime($date)); echo($fixed); // '15-02-2020'