“no suitable method found for between(Date, Date)" when trying to calculate difference in days between two dates
问题 How to calculate the difference between current day and date of the object that user had previously selected from jXDatePicker swing component and that had been added as Date to that object. In my current code at the last line I'm getting this error message: no suitable method found for between(Date, Date) Date currentDate = new Date(); Date objDate = obj.getSelectedDate(); //getting date the user had //previously selected and that been //added to object long daysDifference = ChronoUnit.DAYS