Вопрос

i would convert this time (strftime?)

2013-07-12T07:59:27+0000

in a more simple to read "12/07/2013" (dd-mm-aaaa) and with +2 (i'm in Italy, so this time must be 09:59, no importance for seconds).

Thank you very much!

PS Could you tell me what "kinda of time expression" is, so next time i'll be more capable to search in Google without ask? :)

Это было полезно?

Решение

Try this:

echo date('d/m/Y H:i', strtotime('2013-07-12T07:59:27+0000'));

For more, read this: http://php.net/manual/en/function.strtotime.php

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top