Question: how to find difference between two dates in groovy?
Answer: How to find the number of days between two dates in java or groovy? I have a method which uses following logic to calculate difference between days. long diff = milliseconds2 - milliseconds1; long diffDays = diff / (24 * 60 * 60 * 1000);