I am using this to read over a list of HTML items.
while (postIt.hasNext()) {
Element name = postIt.next();
nameOf = name.text();
String platform = postIt.next().text();
//Get the URL
Element url = name.select("a").first();
urlString = url.attr("href");
//Get the Genre of the item
String genre = postIt.next().text();
//Get the date
Date = postIt.next().text();
}
What i would like to do is compare the Date String to that of the current date on the android device?
How would i go about doing this via Calendar?
I would do this using
DateandSimpleDateFormatIf you are unfamiliar with SimpleDateFormatter, check out the documentation here. It has a lot of helpful information for setting up your pattern.