人类可读的 UTC 日期时间

Human readable UTC datetime

我有这种格式的日期时间:

2017-04-01T17:35:00.000Z

如何使用 Php 对其进行格式化并将其转换为更易于阅读的外观?

我试过:

date_format('2017-04-01T17:35:00.000Z',"F j, Y, g:i a");

它 returns 我是一个假布尔值

PHP Code demo

<?php
$timestamp=  strtotime("2017-04-01T17:35:00.000Z");
echo date("F j, Y, g:i a",$timestamp);

输出:

April 1, 2017, 5:35 pm