title: How to parse/format dates with LocalDateTime? (Java 8)
body: <p>Java 8 added a new <a href="https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html" rel="noreferrer"><em>java.time</em></a> API for working with dates and times (<a href="https://jcp.org/en/jsr/detail?id=310" rel="noreferrer">JSR 310</a>).</p>
  
  <p>I have date and time as string (e.g. <code>"2014-04-08 12:30"</code>). How can I obtain a <a href="https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html" rel="noreferrer"><code>LocalDateTime</code></a> instance from the given string?</p>
  
  <p>After I finished working with the <code>LocalDateTime</code> object: How can I then convert the <code>LocalDateTime</code> instance back to a string with the same format as shown above?</p>