RSS date PHP

Date formating rss

pubDateThe publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That’s when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).

PHP transform date

<?= date(DATE_RFC822, mktime($mysqldate));?>


Validate RSS

http://validator.w3.org/

[ad code=1 align=center]

Join the Conversation

1 Comment

Leave a comment