custom date formatting
- From: "IM" <muzor1@xxxxxxxxx>
- Date: Sun, 29 May 2005 12:08:49 +0200
hi,
I took out a part of my code so I can get some help.
objWriter.WriteStartElement("item"); // start of the "item" element -
one for each article
objWriter.WriteElementString("title",
objReader.GetValue(1).ToString()); // title of article
objWriter.WriteElementString("link",
"http://www.mysite.com/article.aspx?id=" +
objReader.GetValue(0).ToString()); // URL to access the article
objWriter.WriteElementString("description",
objReader.GetValue(2).ToString()); // abstract of the article
objWriter.WriteElementString("pubDate",
objReader.GetValue(3).ToString());//date of the article
objWriter.WriteEndElement(); // end of the "item"
element
This information I pull out of a database table and write it to an XML file
but the date used for "pubDate", objReader.GetValue(3).
=<pubdate>20-5-2005 15:38:39</pubdate> which also shows up in the xml file.
how can I get this date to get displayed the RSS way in the xml file.
thanks
Ru
.
- Follow-Ups:
- Re: custom date formatting
- From: Eliyahu Goldin
- Re: custom date formatting
- Prev by Date: REPOST - Please help.
- Next by Date: system hangs when running aspx page
- Previous by thread: REPOST - Please help.
- Next by thread: Re: custom date formatting
- Index(es):
Relevant Pages
|