PHP Time Issue

well, I"ve got a time format of the type: 2011-02-16T01:25:50+04:00

I want to strip the +04:00 from the end of the string. How to do it?

I am converting a timestamp from mysql to ISO 8601 format using this function:

$timeagotime = date('c',strtotime($row['created_at']));

where $timeagotime contains the value: 2011-02-16T01:25:50+04:00

Refer to the documentation for php's date function:

You need to use a different format string. For instance,


Givens you "2011-02-16". There are a number of format strings... check out the doc.