I want to compare two different date periods and to do this regardless of wether the two date periods are the same? How can I do this?
Date d1 = new Date();
Date d2 = new Date();
Date d3 = new Date();
Date d4 = new Date();
Assuming all the above dates have different values I want to compare the date period between d1, d2 , d3 and d4. Even if they represent the same dates. Is this possible?