CodeIgniter Forums
date time format:2019-04-12T06:51:09.626Z - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: date time format:2019-04-12T06:51:09.626Z (/thread-73329.html)



date time format:2019-04-12T06:51:09.626Z - neuron - 04-12-2019

hello,
I need to convert unix time to 2019-04-12T06:51:09.626Z  this format.
Can anybody help me with this, please.

Also, if possible can you explain this format, is it a some kind of time representation standard.


RE: date time format:2019-04-12T06:51:09.626Z - php_rocs - 04-12-2019

@neuron,

Are you getting the time from a unix server? Here are a couple of suggestions.

https://stackoverflow.com/questions/10040291/converting-a-unix-timestamp-to-formatted-date-string
https://www.php.net/manual/en/datetime.settimestamp.php