DateTimeParse Exception
问题 I am constantly getting an exception error in my code when parsing a date. The Date looks like this: Wed May 21 00:00:00 EDT 2008 This is the code for trying to read it: DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss zzz yyyy"); Property property = new Property(); property.setSale_date(LocalDateTime.parse(linesplit[8], formatter)); Expected result: A LocalDateTime of 2008-05-21T00:00 . What I got instead: Exception in thread "main" java.time.format