How to add date to RSS Feed?

Discussion in 'Web Design and Development' started by JackT06, May 16, 2011.

  1. JackT06 macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #1
    Hello, i have been gooogling all over but can't find it... How do i add a date to my RSS feed items? This is my RSS....
    Code:
    <?xml version="1.0" ?>
    <rss version="2.0">
    
        <channel>
    
        <title>Hampshire DofE Youth Forum</title>
        <description>All the recent DofE news.</description>
        <link>http://hampshiredoeyouthforum.uphero.com</link>
     
        <item>
        <title>Training Resoucres</title>
        <description>Look at our newly added Training Resources, we hope to increase this to collection over time...</description>
        <link>http://hampshiredoeyouthforum.uphero.com/DoingDofE.html</link>
        </item>
    
        <item>
        <title>DofE News</title>
        <description>View all the latest DofE news, county and national...</description>
        <link>http://hampshiredoeyouthforum.uphero.com/DofENews.html</link>
        </item>
    
        <item>
        <title>Mobile Phone Coverage</title>
        <description>You asked for it, so we gave it to you...</description>
        <link>http://hampshiredoeyouthforum.uphero.com/MobilePhoneCoverage.html</link>
        </item>
    
        <item>
        <title>eDofE Upgarde</title>
        <description>IMPORTANT News....</description>
        <link>http://www3.hants.gov.uk/education/outdoor-education/outdoor-education-dofe/dofe-news-2011-jan-jun-2.htm#section443085-5</link>
        </item>
    
        <item>
        <title>Expedition Menu</title>
        <description>After the Expedition Leaders Course (Burgate), you can download the menu from clicking on 'Read More'</description>
        <link>http://hampshiredoeyouthforum.uphero.com/Documents/ExpeditionTrainingMenu.pdf</link>
        </item>
    </channel>
    
    </rss>
    
     
  2. jsm4182 macrumors 6502

    Joined:
    Apr 3, 2006
    Location:
    Beacon, NY
    #2
    the pubDate tag adds the date

    Code:
    <pubDate>Mon, 16 May 2011 14:25:00 +0000 </pubDate>
    
     
  3. JackT06 thread starter macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #3
    Could you give me a hand please? I have put it on one of my items, and it has some how changed the time to 15:25....?

    Click here to check it out.
     
  4. jsm4182 macrumors 6502

    Joined:
    Apr 3, 2006
    Location:
    Beacon, NY
    #4
    The +0000 at the end specifies that the timecode is GMT, whatever you are looking at the rss feed in may be converting it for your time zone.
     

Share This Page