title: Convert String of this "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" format to LocalDate
body: <p>I want to convert the string date (with timezone specified) to LocalDate.</p>
  
  <pre><code>String format = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";
  String date = "2019-08-31T17:00:00.000-07:00";
  
  System.out.println("LocalDate: " + LocalDate.parse(date, DateTimeFormatter.ofPattern(format)));
  System.out.println("Date: " + new SimpleDateFormat(format).parse(date));
  </code></pre>
  
  <p>and output of the above code is</p>
  
  <pre><code>LocalDate: 2019-08-31
  Date: Sun Sep 01 05:30:00 IST 2019
  </code></pre>
  
  <p>I am not able to get the same result that got from SimpleDateFormat. I want 2019-09-01 in LocalDate. </p>