问题
I have date time in this format:
2017-04-01T17:35:00.000Z
how can I format it with Php and transform it in a nicer look to read?
I tried with:
date_format('2017-04-01T17:35:00.000Z',"F j, Y, g:i a");
and it returns me a false boolean
回答1:
PHP Code demo
<?php
$timestamp= strtotime("2017-04-01T17:35:00.000Z");
echo date("F j, Y, g:i a",$timestamp);
Output:
April 1, 2017, 5:35 pm
来源:https://stackoverflow.com/questions/43309621/human-readable-utc-datetime