title: How to parse string (such as "Sunday, July 4, 2021") to LocalDate?
body: <p>I am trying to parse a string <code>&quot;Sunday, July 4, 2021&quot;</code> to <code>LocalDate</code> as the following:</p>
  <pre><code>string this.selectedDate = &quot;Sunday, July 4, 2021&quot;;
  LocalDate date = LocalDate.parse(this.selectedDate);
  </code></pre>
  <p>But I am getting this error:</p>
  <pre><code>java.time.format.DateTimeParseException: Text 'Sunday, July 4, 2021' could not be parsed at index 0
  </code></pre>
  <p>How can I convert such a string full date to the LocalDate?</p>