title: How to convert String to LocalDate without using DateTimeFormatter
body: <p>i have a date in String "2020-06-02"</p>
  
  <p>now i have to convert it in LocalDate but without using DateTimeFormatter.</p>
  
  <p>is it possible.</p>
  
  <pre><code>    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
      LocalDate inputAdDate = LocalDate.parse(adDate, formatter);
  </code></pre>
  
  <p>as of now my code looks like this. but i dont want to use DateTimeFormatter as it is not supported in API level below 26.</p>