title: java.time.format.DateTimeParseException: Text 'Thursday 30 May 2019 - 02:00 PM' could not be parsed at index 0
body: <p>I need to convert the string "Thursday 30 May 2019 - 02:00 PM" to (dd MMM hh:mm a) DateTimeFormat "06 June 01:54 PM"(date).</p>
  
  <p>Here is my code:</p>
  
  <pre class="lang-java prettyprint-override"><code>// last update date is : Thursday 30 May 2019 - 02:00 PM 
  String lastUpadte WebUI.getText(findTestObject("Stock prices/date time"));
  DateTimeFormatter formatter = DateTimeFormatter.ofPattern("d-MMM-yyyy");
  LocalDate date = LocalDate.parse(lastUpadte, formatter);
  System.out.println("&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;" + date);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/kgj1Z.png" alt="enter image description here"></p>