I can't seem to get my date with a variable space for parsing.
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM d HH:mm:ss yyyy"); LocalDateTime dateTime = LocalDateTime.parse(date, formatter);
This is the format I have to accept.
Sat Jul 2 08:52:13 2016 Sat Jul 12 08:52:13 2016
I can get the top if I change my formatter below, but it breaks with a two digit number
EEE MMM d HH:mm:ss yyyy
source share