title: LocalDateTime : converting String to HH:mm:ss
body: <p><strong>What I need to do :</strong><br>
  I need to pass a LocalDateTime object to a constructor and I have a string that have "18:14:00" as value.</p>
  
  <p><strong>My question :</strong><br>
  How can I convert the string to LocalDateTime ?</p>
  
  <p><strong>What I have done :</strong><br>
  After some researches, I put this but it didn't work :</p>
  
  <pre><code>LocalDateTime.parse("18:14:00", DateTimeFormatter.ofPattern("HH:mm:ss"));
  </code></pre>
  
  <blockquote>
    <p>java.time.format.DateTimeParseException: Text '18:14:00' could not be
    parsed: Unable to obtain LocalDateTime from TemporalAccessor: {},ISO
    resolved to 18:14 of type java.time.format.Parsed</p>
  </blockquote>