Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top