I'm trying to compare two dates using LocalDate in my Expire date table. The problem is that I cannot set properly row formatting according to dateExpiry.
This is how it should look:

if (today.isEqual(LocalDate.parse(medicament))) {
currentRow.setStyle("-fx-background-color:tomato");
} else if (today.before(LocalDate.parse(medicament).plusMonths(3))) {
currentRow.setStyle("-fx-background-color:orange");
} else {
currentRow.setStyle("-fx-background-color:lightgreen");
}