S
S
Sergey Kiryanov2019-07-29 10:08:09
PHP
Sergey Kiryanov, 2019-07-29 10:08:09

How to format the date in the format "YYYY-MM-DDTHH:MM:SSZ" (ISO)?

There is a date in the format "2019-07-29 09:58:53"
How to correctly convert to the format "YYYY-MM-DDTHH:MM:SSZ"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2019-07-29
@usdglander

echo (new \Datetime("2019-07-29 09:58:53"))->format('c');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question