title: Month Year In String to Date Java 8
body: <pre><code>DateTimeFormatter dateFormat = DateTimeFormatter.ofPattern("MM/yyyy");
  LocalDate parsedDate = LocalDate.parse(entryOne.getKey(), dateFormat)
  </code></pre>
  
  <p>Getting exception </p>
  
  <blockquote>
    <p>Text '03/2018' could not be parsed: Unable to obtain LocalDate from TemporalAccessor:</p>
  </blockquote>
  
  <p>How to parse this string and convert to Date using Java 8 having default first day of the month. Something what we do using.</p>
  
  <pre><code>TemporalAdjusters.firstDayOfMonth()
  </code></pre>