I need to normalise some Data to execute a SQL-Statement. Unfortunately I can't initialize a LocalDate-variable with LocalDate.EPOCH. MIN and MAX are working.
startDatum = startDatum == null? LocalDate.EPOCH : startDatum; // doesn't work
endDatum = (endDatum == null)? LocalDate.MAX : endDatum; // works
Eclipse only says EPOCH cannot be resolved or is not a field
EPOCH
was introduced in Java 9, so if you are targeting Java 8 it is not available. – KarakalpakLocalDate.EPOCH
is just a (confusing) symbol for the arbitrary date 1970-01-01. Why do you want to choose this date as start in case of missing content? I don't understand your use-case. – Blasien