custom date formatting



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


.



Relevant Pages

  • Re: NEWB: reverse traversal of xml file
    ... I have an xml file of about 140Mb like this: ... I want to traverse it from bottom to top and add another field to each ... def enumerate_words: ... if prev>= part: ...
    (comp.lang.python)
  • Re: Problem element with writing xml from a dataset
    ... XmlDataDocument doc = new XmlDataDocument; ... // Save to the XML file ... inza141's Profile: http://www.hightechtalks.com/m842 ... Prev by Date: ...
    (microsoft.public.dotnet.xml)
  • WriteXml not adding nil attribute
    ... I am trying to use WriteXml to create an xml file from a dataset with null ... dataset value is DBNull. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: reflection newInstance
    ... You have to specify a value. ... > It is from an xml file that contains type of an ... Prev by Date: ...
    (comp.lang.java.help)
  • Linking XML File to a Datagrid
    ... We are using a DataSet intialized with an XML File, ... The debugger shows this error: ... Best Regards, ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)