Is there a way to parse 2018-09-17T17:13:13.741 to 2018-09-17 17:13:13. I was trying with :
LocalDateTime startDateTime = LocalDateTime.now();
DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime.parse(startDateTime, FORMATTER);
With combinations I either get a parse exception or 2018-09-17T17:13:13.
Note: I do not need the T and milliseconds