Reformat pubDate from MagpieRSS

Discussion in 'PHP' started by Vanitas, Aug 26, 2007.

  1. #1
    Does anyone know how to reformat the date from MagpieRSS?

    Right now, I'm getting the date like this:
    $pubdate = $item['pubdate'];

    Currently, it gives:
    Thu, 23 Aug 2007 15:56:06 +0000

    I'd like to reformat it to look like:
    Thursday, August 23rd, 2007
     
    Vanitas, Aug 26, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    $item['pubdate'] = date('l, F dS, Y', strtotime($item['pubdate']));
    
    PHP:
     
    nico_swd, Aug 26, 2007 IP
    Vanitas likes this.
  3. Vanitas

    Vanitas Peon

    Messages:
    65
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Awesome! I figured the answer was something simple.
    Many thanks nico_swd - green rep given!
     
    Vanitas, Aug 26, 2007 IP