Pregunta

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? :)

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top