var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
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:
Any help is appreciated
$pubdate = ereg_replace(".*<pubDate>","",$item); // Remove the leading <pubDate> tags
$pubdate = ereg_replace("</pubDate>.*","",$pubdate); // Remove the closing </pubDate> tags
date('D j M', strtotime($pubdate))
So simple its a joke, i wont tell you how long time i sped trying to find a solution to this