Parse RSS pubDate to Date object in java
Posted
by Derk
on Stack Overflow
See other posts from Stack Overflow
or by Derk
Published on 2010-04-24T18:00:26Z
Indexed on
2010/04/24
18:03 UTC
Read the original article
Hit count: 324
How can I parse a pubDate from a RSS feed to a Date object in java.
The format in the RSS feed: Sat, 24 Apr 2010 14:01:00 GMT
What I have at the moment:
DateFormat dateFormat = DateFormat.getInstance();
Date pubDate = dateFormat.parse(item.getPubDate().getText());
But this code throws an ParseException with the message Unparseable date
© Stack Overflow or respective owner