i want to ask you, if you help me with this problem...
I have two date:
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date date1 = sdf.parse("2009-12-31"); 
        Date date2 = sdf.parse("2010-01-31");
I want to compare a date, whether the difference in them X days
        int x = 30; // I need to delete the file if it is older than 30 days
        if(isOldThan30days(date1,date2, x)){
           //delete file
        }else{
           //nothing
        }
I hope you understand me :-). How can i do this? Thank you.
 
     
     
    