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).
Here is my 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(">>>>>>>>>>>>>>>>>>>>>>>>>>>>" + date);
