Quantcast
Viewing latest article 18
Browse Latest Browse All 34

Parse SimpleDateFormat of RSS

I have an app that read a rss from a website (Tue, 17 Mar 2015 12:41:41 +0000). I get this format date (Tue Mar 17 12:41:41 GMT 2015) and I want to obtain this: Tuesday 17 March in spanishMartes, 17 Marzo.

I'm trying differents forms, but I can't parse de date.

This is my code:

DateFormat formatter = new SimpleDateFormat("EEEE, dd MMMM yyyy kk:mm:ss Z", Locale.ENGLISH);

The porcion code where I get the data of the xml parse:

else if(name.equalsIgnoreCase("pubDate")){
    noticia.setFecha(formatter.parse(""+property.getFirstChild().getNodeValue()));

Viewing latest article 18
Browse Latest Browse All 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>