I am trying to parse date
final LocalDateTime dateTime = LocalDateTime.parse("2017-01-17 09:28:45", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss'Z'"));
Im expecting LocalDateTime because this last 'Z' should not impact as it is in single quotes.
BTW following code is working
final LocalDateTime dateTime = LocalDateTime.parse("2017-01-17 09:28:45", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
Z, why don’t you simply remove theZbefore parsing?