formatting specific date and time in localdatetime code example
Example: formatting specific date and time in localdatetime
String dateTime = "1995-07-25 15:03:45";
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime date = LocalDateTime.parse(dateTime, dateTimeFormatter);