Just show month, day and date

  • Vanitas

    Vanitas - 2007-08-22

    I've successfully gotten MagpieRSS working and have a question I hope someone can answer.

    I'm showing the date published by using:
    $pubdate = $item['pubdate'];

    However, I would like to change the format from:

    Tue, 21 Aug 2007 13:22:51 +0000

    to this:

    Tuesday, August 29th, 2007

    Is there an easy way to do it?

    Thanks for any help,

    • Vanitas

      Vanitas - 2007-08-26

      For anyone that has a similar problem, here's how to solve it:

      $item['pubdate'] = date('l, F dS, Y', strtotime($item['pubdate']));


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks