title: DateTimeParseException could not be parsed at index 16 Java Seldomly Triggered
body: <p>recently I faced this problem. But this happen seldomly and sometime my program run smoothly. What is triggering this exception? How to completely solve this problem:</p>
  
  <p>Code:</p>
  
  <pre><code>63: DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss", Locale.US);
  64: String strLocalDate = loginRecords.getLoginDate().toLocalDateTime().toString();
  65: LocalDateTime lastLogin = LocalDateTime.parse(strLocalDate, formatter);
  </code></pre>
  
  <p>Exception text:</p>
  
  <pre><code>Exception in thread "Thread-5" java.time.format.DateTimeParseException: Text '2015-11-21T14:15' could not be parsed at index 16
      at java.time.format.DateTimeFormatter.parseResolved0(Unknown Source)
      at java.time.format.DateTimeFormatter.parse(Unknown Source)
      at java.time.LocalDateTime.parse(Unknown Source)
      at com.fesca.view.MainMenuFrame.&lt;init&gt;(MainMenuFrame.java:65)
      at com.fesca.control.listener.CheckingRehabDateListener.run(CheckingRehabDateListener.java:287)
  </code></pre>