I have a simple Java LocalDateTime like below:
DateTimeFormatter theDtFrmtr = DateTimeFormatter.ofPattern("M/d/yy h:mm a");
String strDate = "3/23/21 1:17 PM";
LocalDateTime localDate = LocalDateTime.parse(strDate, theDtFrmtr);
System.out.println("localDate - "+ localDate);
It results in: localDate - 2021-03-23T13:17
I am expecting it to be is - localDate - 2021-03-23 1:17 pm
What am I missing here?