I have a date in String format,
mm/dd/yyyy
I want to convert this to RSS date format like,
friday, june 01, 2012, 12:11:25PM
and i want to add this date value which is basically the pubDate to RSS pubDate tag, as follows:
writer.WriteElementString("pubDate",pubDate);
How can i convert this string to pubDate? any suggestions?
O/P
<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title>About RSS</title>
<link>http://localhost:27549/TTTT.aspx</link>
<description>The latest news</description>
<image><url>http://localhost:27549/images/ttt_logo.jpg</url></image>
<item><title>ABC</title><link>http://localhost:27549/Viewttt.aspx?id=217</link><description>zzzzzzzzzzzzzzzzzzz...</description><pubDate>Tuesday, August 30, 2011, 00:00:00AM</pubDate></item></channel></rss>