Question: how to convert string to date in java in yyyy-mm-dd hh mm?
Answer: DateTimeFormatter formatter = DateTimeFormatter. forPattern("dd-MM-yyyy HH:mm:ss"); DateTime dateTime = DateTime. parse("22-Sep-2018 8:15:43", formatter);