Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top