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
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
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