How can I determine if a date is between two dates in Java? [duplicate]

This might be a bit more readable:

Date min, max;   // assume these are set to something
Date d;          // the date in question

return d.after(min) && d.before(max);

Leave a Comment