I have a problem with my code in which I use strings ("2019/07/23") and I'm adding days with a separate function but when I send these new dates to another function (to give me back a value), this other function doesn't recognize these dates. but if I send these dates manually ("2019/07/24" instead of variable DATE) the other function now give me a value. i don't know why, because i compared this variables to strings ("2019/07/23".equals(date)) and they are equals...
String datex = "2019/07/23";
while(!datex.equals(dateUntil)){
turn = diary.turns(lawyer, datex);
while(turn != null){
sum++;
}
datex = addDay(datex, 1);
}