将日期转换为其他日期格式

All, I have a date format in the following output that I get from Tumblr:

2013-02-25 18:00:25 GMT

I'd like to convert this to a date format I want using the date function. I tried the following:

$date = date("F d, Y",$tumblr_posts->date); 
echo $date;

When I did this, the output was "January 01, 1970" which is obviously not right. Any ideas on how to fix this?

Thanks!

You need to use the strtotime function like this.

$date = date("F d, Y", strtotime($tumblr_posts->date));

To find how to parse your date use the PHP date function reference.