Hi frends
How can I change the date format i this RSS feed and not in the database.
The date format now is month-day-year. I want day-month-year format
Thanks
// get your news items from somewhere, e.g. your database:
$cfg = load_cfg ("secure/configure.cfg");
db_connect ($cfg["db_server"], $cfg["db_user"], $cfg["db_pass"], $cfg["db_database"]);
$res = db_query($query) or die("$query");
$link = $cfg['domain'];
$body="<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
<rss version=\"2.0\">
<channel>
<title>Nyheder fra $city</title>
<link>" . htmlentities($link) . "</link>
<description>Nye rabatkuponer fra " . htmlentities($link) . "</description>
";
while ($data = mysql_fetch_object($res)) {
$body .= "
<item>
<title><![CDATA[" . $data->name . " - " . $data->title . " - " . $data->price . "]]></title>
<link>" . cleanstring($link . "/index.php?page=viewbus&bus=" . $data->business) . "</link>
<description><![CDATA[" . $data->subtitle . "]]></description>
<pubDate>" . date('d M Y ', $data->created) . "</pubDate>
</item>";
/*
$item = new FeedItem();
$item->title = $data->name . " - " . $data->title;
$item->link = $link . "/index.php?page=viewbus&bus=" . $data->business;
$item->description = $data->subtitle;
$item->date = date('m/d/Y', strtotime ($data->created));
$item->source = $link . "/index.php?page=viewbus&bus=" . $data->business;
$item->author = $data->name;
$rss->addItem($item); */
}