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 the days between two dates. I can not use the Joda package. Is there a way to get the difference on the day in 2 dates?
source
share