My code is:
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm");
String filterValue = "01.03.2021 0:01";
LocalDateTime parsedDate = LocalDateTime.parse(filterValue, formatter);
I get the exception java.time.format.DateTimeParseException: Text '01.03.2021 0:01' could not be parsed at index 11
"dd.MM.yyyy H:mm". By the way, index 11 is the0, use only one if you are parsing values with single-digit hours of day.0, not the space character.0:01doesn't matchHH:mm