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

Here is the results from my RSS feed evaluation:

http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.oil-testimonials.com%2Ffeed.rss

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) );

Thanks!

Hi,

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?

Steve

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