Trying to get my RSS feed to use the correct date format

Here is the results from my RSS feed evaluation:

I can’t figure out why the code below is not working. Any ideas?

$postDate = ‘2012-03-17 00:00:00’

$postDate = gmdate(‘%a, %d %b %Y %H \G\M\T’, strtotime($postDate) );



When I run your example above it outputs: %am, %17 %b %2012 %00 GMT

This does not return an error therefore gmdate() is formatting the date specified in the date converted to a timestamp.

What do you want to see?


I figured it out. I was using mySQL date options instead of php date options. I’m good to go now.