RSS optional item

How does one get a valid publication date for an rss feed?

I have basically “made one myself manually” from a template but how in the world do you get the right pubDate? everything else is just copy & paste pretty much.

Thanks

I don’t know how you are creating your files, but I use PHP’s date function

date("D, d M Y")

and then append

" 00:00:01 "

and

date("T")

This results in

<pubDate>Fri, 19 Feb 2010 00:00:01 PST</pubDate>

If you want “real” HMS you could use

date("D, d M Y H:i:s T")

Note date() uses the servers date/time, but you can change that if need be.

well, I made it in DW, and now see I may need a feed creator software to get the date. unfortunately,. I do not follow ho you used php for the date format I will do a G search to see how I can use php for RSS date.

Thanks

You need to lay out the date and time in a specified format: EG - “Sat, 07 Sep 2002 00:00:01 GMT”.
Day and month MUST be 3 Chars long (Mon, Tue, Wed, Thu, Fri, Sat, Sun - Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)

Source: http://asg.web.cmu.edu/rfc/rfc822.html#sec-5