Code example for ParseException

Methods: printStackTrace

0
			Date past = format.parse(temp);
			Date now = new Date();
 
			days = TimeUnit.MILLISECONDS.toDays(now.getTime() - past.getTime());
		} catch (ParseException e) {
			e.printStackTrace();
		} catch (java.text.ParseException e) {
			e.printStackTrace();
		} 
		String returnString = ""; // = temp;
		if (days == 1) {
			returnString += Long.toString(days) + " dag sedan";
		} else if (days > 1) {
			returnString += Long.toString(days) + " dagar sedan";
		} 
		return returnString;
	} 
 
	/** 
	 * Does all the magic in getting an XML-file from the network, parses it, an 
	 * filling an ArrayList containing an HashMap of KEY-VALUE-pairs