i understood how to format the date according to this link
parse exemple
but my problem is a bit complex i have different pubDate rss elements for example
Sun, 21 Aug 2011 20:19:47 +0200
or
Sun, 21 Aug 2011 10:01
what is the best why to set one format for any pubDate element
RSS pubDate must conform to the RFC 822 Date/Time specification. You can use the same
DateFormatobject from your parsing link to get the proper string from a javaDate.Where pubDate is a previously defined Date object. This will always return the same format.