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);
More Related Contents:
- Date format conversion error [duplicate]
- Change date format in a Java string
- How to sanity check a date in Java
- Insert & fetch java.time.LocalDate objects to/from an SQL database such as H2
- How to calculate “time ago” in Java?
- How to get the current time in YYYY-MM-DD HH:MI:Sec.Millisecond format in Java?
- Java date format conversion – getting wrong month
- Convert java.util.Date to what “java.time” type?
- How to tackle daylight savings using TimeZone in Java
- Java: Why is the Date constructor deprecated, and what do I use instead?
- What is the use of “lenient “?
- Java SimpleDateFormat for time zone with a colon separator?
- Creating java date object from year,month,day
- Best way to constrain user to enter a time in a JTextField
- How to convert current date into string in java?
- Get GMT Time in Java
- Java Date cut off time information
- How to add days to a date in Java
- Calculate Difference between two times in Android
- Android calculate days between two dates
- Java Timestamp – How can I create a Timestamp with the date 23/09/2007?
- Android get date before 7 days (one week)
- Why is the Date constructor deprecated, and what do I use instead?
- DateTimeFormatter Support for Single Digit Day of Month and Month of Year
- Is there a good way to get the date of the coming Wednesday?
- Getting difference between two dates Android
- How create Date Object with values in java
- Determine if a String is a valid date before parsing
- Fastest way to parse a date in Basic ISO 8601 format, using Java [closed]
- Why is subtracting these two epoch-milli Times (in year 1927) giving a strange result?