Custom Search
Logiclabz

RSS pubDate in .Net c#

  

RSS pubDate is the publication date for the content in the channel.

RSS pubDate element is of format "Wed, 14 Sep 1983 00:00:01 GMT"

This pubData element format can be achieved in C# .Net using the following piece of code.

DateTime.Now.ToString("ddd, dd MMM yyyy HH:mm:ss K")

output would be

"Tue, 03 Nov 2009 13:45:57 +05:30"



  


Leave a reply




Do you like this post?