I am trying to convert the below String
to LocalDateTime
, but somehow its not working.
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss.SSS");
val dateTime = LocalDateTime.parse("2016-09-21 13:43:27.000", formatter);
It seems there is a problem in Pattern.