I want to calculate the difference between two dates in days.
I have something like:
String deadline = "2015-08-15";
and I get the current date in:
String timeStamp = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).format(new Date());
For example it would be for today:
2015-11-11
How can I calculate the days between these two dates? And what happens if the date is past.