CodeIgniter Forums

Full Version: date time format:2019-04-12T06:51:09.626Z
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
@neuron,

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

https://stackoverflow.com/questions/1004...ate-string
https://www.php.net/manual/en/datetime.settimestamp.php