Results 1 to 3 of 3
  1. #1

    RSS pubDate only display date ?

    Hello i am getting news from a RSS feed, and with each link it shows when it was added by using pubdate.

    Right now it shows the full pubdate:

    Tue 19 Feb 2008 14:04:55 +0000 (the Link)

    But i only want it to show it like this:

    Tue 19 Feb (the Link)

    How can i do this ?

    This is the code im using to get the pubdate:

        $pubdate = ereg_replace(".*<pubDate>","",$item); // Remove the leading <pubDate> tags
        $pubdate = ereg_replace("</pubDate>.*","",$pubdate); // Remove the closing </pubDate> tags
    Any help is appreciated

  2. #2
    Join Date
    Nov 2005
    PHP Code:
    date('D j M'strtotime($pubdate)) 

  3. #3
    Great!! thanks

    So simple its a joke, i wont tell you how long time i sped trying to find a solution to this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts