Problem with parse a LocalDateTime using java 8
问题 I have this code, it's a simple string that I want to parse it to a LocalDateTime import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; public class DateClass { /** * @param args the command line arguments */ public static void main(String[] args) { String dateRaw = "2019-05-03 7:05:03"; DateTimeFormatter dtf = new DateTimeFormatterBuilder().appendPattern("uuuu-mm-dd HH:mm:ss").toFormatter(); LocalDateTime date=