I have a code that has 2 dates in the format
DateFormat dateFormat= new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z");
Date date=new Date();
DateFormat formatter ;
Date publishDate = (Date)dateFormat.parse(pubDate);
I want to calculate days between two dates. I can't use Joda package. Is there any way to get the day difference in the 2 dates ?