title: Exception in thread "main" java.time.format.DateTimeParseException: Text '14/Oct/2016 23:09:25.2110 +0530' could not be parsed at index 0
body: <p>I was just playing with Java 8 Date time API. </p>
  
  <p>My code looks like this.</p>
  
  <pre><code>LocalDateTime date=LocalDateTime.now(ZoneId.of("America/New_York"));
  System.out.println("date now:"+date);
  String ormat = ZonedDateTime.now().format(DateTimeFormatter.ofPattern("dd/MMM/yyyy HH:mm:ss"));
  //=date.format(DateTimeFormatter.ofPattern("dd/MMM/yyyy'T'hh:mm:ss.SX Z"));
  LocalDateTime date2=LocalDateTime.parse(format);
  
  System.out.println("dsate now:"+date2);
  </code></pre>
  
  <p>But it is showing this error</p>
  
  <pre><code>Exception in thread "main" java.time.format.DateTimeParseException: Text '14/Oct/2016 23:13:57' could not be parsed at index 0
  </code></pre>
  
  <p>I tried with this pattern</p>
  
  <pre><code>String format=ZonedDateTime.now().format(DateTimeFormatter.ofPattern("dd/MMM/yyyy HH:mm:ss.SSSS Z"));
  </code></pre>
  
  <p>Still didn't work.</p>
  
  <p>I checked the answers <a href="https://stackoverflow.com/questions/23069370/format-a-date-using-the-new-date-time-api">here</a> and <a href="https://stackoverflow.com/questions/25229124/format-instant-to-string">here</a>.</p>
  
  <p>Edit:
  One thing also I want to know what if I want my date object only in this format?</p>
  
  <p>Edit 2:
  What I try to achieve is that have some date and time what I got using localDateTime and I want to format it using the formatter I have used in code.</p>