Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What time format is this and how do I convert it to a standardized dd/mm/yyyy date?

I'm using the YouTube/Google API and for the upload date for a particular video a time/date formatted in the following format is returned:

2012-05-16T17:15:29.000Z

I'm not sure what format this is, but I'm wondering if there's an easy way (e.g. using DateTime()) to convert it to a format of dd/mm/yyyy?

Any mention of what the time format is called would be also appreciated ;).

like image 607
Avicinnian Avatar asked May 16 '12 17:05

Avicinnian


People also ask

How do I standardize a date format?

To quickly use the default date format, click the cell with the date, and then press CTRL+SHIFT+#.


1 Answers

That would be UTC time

date_format($date, 'd/m/Y'); 
like image 83
web_bod Avatar answered Sep 26 '22 21:09

web_bod