String dateTime to Date -> check if is today
===

I need a function that checks if a date from a rss feed (of an event) is today. The rss gives a String (between CDATA) so i need to parse that. The form of this Date is: 

> Wed, 01 Aug 2012 00:00:00 +0002

where the time and timezone are useless, only date counts. 

I thought: i format the date of today (set phone date wrong for testing) in the same format as the input string and test of they are equal. But apparently the language settings of the device are important to, because i got: 

     Wed, 01 Aug 2012 00:00:00 +0002 = wo, 01 aug. 2012 14:36:55 +0200

(i would use a substring to get rid of the time).
So this doesn't work.

Now i tried a new way, but it seems a bit overcomplicated:
Get string --> convert to date --> format date to string in ddMMyyyy form -->
format today date to string in ddMMyyyy form -->
test if they are equal.
But for some reason this doesnt work either, because the parsing from string to Date doesnt work. But i thought my format was exactly the same...
Anyone has an idea how to achieve this, or what i should change?

my code:

    public boolean isAgendaToday(String inputstring){
    		  boolean isToday = false;
    		  SimpleDateFormat  format = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z");  
    		    Date deventDate = null;
    		    String seventDate;
    			 Date dtoday = new Date();
    			 String stoday;
    			 SimpleDateFormat dateOnly = new SimpleDateFormat("ddMMyyyy");
    			 stoday = dateOnly.format(dtoday);
    			 try {  
    		    	deventDate = format.parse(inputstring); 
    		    	seventDate = dateOnly.format(deventDate);
    				 System.out.println(seventDate + " = " + stoday);
    		        if(stoday.equals(seventDate)){
    					 isToday = true;
    				 }
    		    } catch (ParseException e) {  
    		        // TODO Auto-generated catch block  
    		        e.printStackTrace();  
    		    } catch (java.text.ParseException e) {
    				// XXX Auto-generated catch block
    				e.printStackTrace();
    			}
    
    		return isToday;
    		  
    	  }

This is what the log says after every time i try this (with different dates of course):
	

> java.text.ParseException: Unparseable date: Tue, 31 Jul 2012 00:00:00 +0002


