[Solved] how to convert LocalDate to a specific date time format [closed]

I am assuming that have got a string, for example 2016-01-25, and that you want a string containing the start of the day in the JVM’s default time zone (it wasn’t clear from the question). I first define a formatter for the format that you want (it’s ISO 8601): private static DateTimeFormatter formatter = DateTimeFormatter.ofPattern(“uuuu-MM-dd’T’HH:mm:ss.SSSxx”); … Read more